rustc/tests/ui/deref-non-pointer.rs
2023-07-27 22:48:29 +08:00

6 lines
90 B
Rust

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