rust/src/test/compile-fail/class-implements-int.rs
2012-09-06 10:52:26 -07:00

14 lines
161 B
Rust

struct cat : int { //~ ERROR trait
let meows: uint;
}
fn cat(in_x : uint) -> cat {
cat {
meows: in_x
}
}
fn main() {
let nyan = cat(0u);
}