]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-95878.rs
Merge commit 'e8dca3e87d164d2806098c462c6ce41301341f68' into sync_from_cg_gcc
[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() {}