]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/staticness-mismatch.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / traits / staticness-mismatch.rs
1 trait Foo {
2     fn dummy(&self) { }
3     fn bar();
4 }
5
6 impl Foo for isize {
7     fn bar(&self) {}
8     //~^ ERROR method `bar` has a `&self` declaration in the impl, but not in the trait
9 }
10
11 fn main() {}