mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
4ac60601d3
fixes #128042
13 lines
216 B
Rust
13 lines
216 B
Rust
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() {}
|