]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-95878.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / issue-95878.rs
1 struct Foo<'a>(&'a ());
2
3 impl<'a> Foo<'a> {
4     fn spam(&mut self, baz: &mut Vec<u32>) {
5         match 15 {
6             ref Self => (),
7             //~^ ERROR expected identifier, found keyword `Self`
8         }
9     }
10 }
11
12 fn main() {}