2015-04-02 21:56:27 -05:00
|
|
|
enum BtNode {
|
|
|
|
Node(u32,Box<BtNode>,Box<BtNode>),
|
|
|
|
Leaf(u32),
|
|
|
|
}
|
|
|
|
|
2015-02-19 08:01:57 -06:00
|
|
|
fn main() {
|
2019-01-06 09:33:05 -06:00
|
|
|
let y = match 10 {
|
2015-04-02 21:56:27 -05:00
|
|
|
Foo<T>::A(value) => value, //~ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
|
|
|
|
Foo<T>::B => 7,
|
|
|
|
};
|
2015-02-19 08:01:57 -06:00
|
|
|
}
|