summary refs log tree commit diff
path: root/src/test/compile-fail/deref-non-pointer.rs
blob: 8c23b1db2dec004d7c4bf693112e3cda92e265d9 (plain)
1
2
3
4
5
6
// error-pattern:cannot be dereferenced
fn main() {
  match *1 {
      _ => { fail; }
  }
}