rust/tests/ui/suggestions/suggest-add-self-issue-128042.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
216 B
Rust
Raw Normal View History

struct Thing {
state: u8,
}
impl Thing {
fn oof(*mut Self) { //~ ERROR expected parameter name, found `*`
self.state = 1;
//~^ ERROR expected value, found module `self`
}
}
fn main() {}