rust/tests/ui/pattern/issue-95878.rs

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

13 lines
233 B
Rust
Raw Normal View History

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() {}