rust/src/test/compile-fail/issue-2370-2.rs

10 lines
149 B
Rust
Raw Normal View History

// error-pattern: can only dereference structs
2012-09-05 17:58:43 -05:00
struct cat {
x: ()
}
fn main() {
2012-09-05 17:58:43 -05:00
let kitty : cat = cat { x: () };
log (error, *kitty);
}