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

7 lines
130 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 nyan = cat();
log (error, *nyan);
}