rust/src/test/compile-fail/trait-test.rs
2012-08-02 17:58:56 -07:00

6 lines
92 B
Rust

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