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

11 lines
139 B
Rust

trait foo {
static fn bar();
}
impl int: foo {
fn bar() {} //~ ERROR self type does not match the trait method's
}
fn main() {}