2018-11-16 19:27:27 +01:00
|
|
|
struct Foo {}
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn c(foo: u32, self) {}
|
2019-05-23 13:10:24 -07:00
|
|
|
//~^ ERROR unexpected `self` parameter in function
|
2020-02-02 11:10:27 +01:00
|
|
|
//~| NOTE must be the first parameter of an associated function
|
2018-11-16 19:27:27 +01:00
|
|
|
|
|
|
|
fn good(&mut self, foo: u32) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|