summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/pat-lt-bracket-4.rs
blob: 6d348b68cd66b1f465de665c2f08fa7358d156ff (plain)
1
2
3
4
5
6
7
8
9
10
11
enum BtNode {
    Node(u32,Box<BtNode>,Box<BtNode>),
    Leaf(u32),
}

fn main() {
    let y = match 10 {
        Foo<T>::A(value) => value, //~ ERROR generic args in patterns require the turbofish syntax
        Foo<T>::B => 7,
    };
}