rust/src/test/compile-fail/staticness-mismatch.rs

11 lines
145 B
Rust
Raw Normal View History

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