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

10 lines
145 B
Rust
Raw Normal View History

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