rust/src/test/compile-fail/trait-test.rs

6 lines
86 B
Rust
Raw Normal View History

trait foo { fn foo(); }
2012-08-07 20:10:06 -05:00
impl uint: int { fn foo() {} } //~ ERROR trait
fn main() {}