rust/src/test/compile-fail/trait-test.rs
2012-08-08 18:19:24 -07:00

6 lines
86 B
Rust

trait foo { fn foo(); }
impl uint: int { fn foo() {} } //~ ERROR trait
fn main() {}