rust/src/test/compile-fail/deref-non-pointer.rs

6 lines
91 B
Rust
Raw Normal View History

// error-pattern:cannot be dereferenced
fn main() {
2012-08-06 14:34:08 -05:00
match *1 {
2012-08-03 21:59:04 -05:00
_ => { fail; }
}
}