rust/tests/ui/deref-non-pointer.rs
2023-01-11 09:32:08 +00:00

6 lines
90 B
Rust

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