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

7 lines
137 B
Rust
Raw Normal View History

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