rust/src/test/compile-fail/issue-2370-2.rs
2012-09-06 10:52:26 -07:00

9 lines
151 B
Rust

// error-pattern: type cat cannot be dereferenced
struct cat {
x: ()
}
fn main() {
let kitty : cat = cat { x: () };
log (error, *kitty);
}