blob: 5ccea589561cbdea1b02aae56fb3eaa448d5b65a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
struct Foo {}
impl Foo {
fn c(foo: u32, self) {}
//~^ ERROR unexpected `self` parameter in function
//~| NOTE must be the first parameter of an associated function
fn good(&mut self, foo: u32) {}
}
fn main() { }
|