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

7 lines
138 B
Rust
Raw Normal View History

// error-pattern: type cat cannot be dereferenced
2012-08-15 20:46:55 -05:00
struct cat { new() {} }
fn main() {
let kitty : cat = cat();
log (error, *kitty);
}