summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/pat-lt-bracket-3.rs
blob: a8bdfd3fa181ba8ecac6b8a2ded4651fbdb6edcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Foo<T>(T, T);

impl<T> Foo<T> {
    fn foo(&self) {
        match *self {
            Foo<T>(x, y) => {
            //~^ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
              println!("Goodbye, World!")
            }
        }
    }
}

fn main() {}