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

6 lines
86 B
Rust
Raw Normal View History

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