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

11 lines
145 B
Rust

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