rust/tests/ui/deref-patterns/deref-non-pointer.rs
2025-04-21 16:16:38 +09:00

5 lines
90 B
Rust

fn main() {
match *1 { //~ ERROR: cannot be dereferenced
_ => { panic!(); }
}
}