mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 13:57:24 +00:00
12 lines
231 B
Rust
12 lines
231 B
Rust
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() { }
|