]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/pat-lt-bracket-3.rs
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[rust.git] / tests / 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() {}