rust/src/test/compile-fail/issue-2370-2.rs
Tim Chevalier 0343b0553b Test that a class type name gets printed correctly in a...
"cannot be dereferenced" error message. Closes #2370
2012-05-17 09:40:43 -07:00

7 lines
137 B
Rust

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