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

impl<T> Foo<T> {
    fn foo(&self) {
        match *self {
            Foo<T>(x, y) => { //~ ERROR generic args in patterns require the turbofish syntax
              println!("Goodbye, World!")
            }
        }
    }
}

fn main() {}