blob: de314f6c6412da1189f9c3857008aec5451beac9 (
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: expected one of `=>`, `@`, `if`, or `|`, found `<`
Foo<T>::B => 7,
};
}
|