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