rust/src/test/compile-fail/issue-2370-2.rs
2012-08-17 10:13:45 -07:00

7 lines
138 B
Rust

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