mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
13 lines
233 B
Rust
13 lines
233 B
Rust
struct Foo<'a>(&'a ());
|
|
|
|
impl<'a> Foo<'a> {
|
|
fn spam(&mut self, baz: &mut Vec<u32>) {
|
|
match 15 {
|
|
ref Self => (),
|
|
//~^ ERROR expected identifier, found keyword `Self`
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|