]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-lt-bracket-3.rs
Rollup merge of #90345 - passcod:entry-insert, r=dtolnay
[rust.git] / src / test / ui / parser / pat-lt-bracket-3.rs
1 struct Foo<T>(T, T);
2
3 impl<T> Foo<T> {
4     fn foo(&self) {
5         match *self {
6             Foo<T>(x, y) => {
7             //~^ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
8               println!("Goodbye, World!")
9             }
10         }
11     }
12 }
13
14 fn main() {}