]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-lt-bracket-4.rs
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / pat-lt-bracket-4.rs
1 enum BtNode {
2     Node(u32,Box<BtNode>,Box<BtNode>),
3     Leaf(u32),
4 }
5
6 fn main() {
7     let y = match 10 {
8         Foo<T>::A(value) => value, //~ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
9         Foo<T>::B => 7,
10     };
11 }