rust/tests/ui/deref-non-pointer.rs

6 lines
90 B
Rust

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