rust/tests/ui/traits/staticness-mismatch.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
199 B
Rust
Raw Normal View History

trait Foo {
fn dummy(&self) { }
fn bar();
}
impl Foo for isize {
2014-02-05 22:33:10 +00:00
fn bar(&self) {}
//~^ ERROR method `bar` has a `&self` declaration in the impl, but not in the trait
}
fn main() {}