summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/issue-95878.rs
blob: f59814468b2f146eeeddc180f720b7be4e47e8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {}