rust/src/test/ui/parser/pat-lt-bracket-4.rs

14 lines
268 B
Rust
Raw Normal View History

2016-02-10 03:11:27 +00:00
// compile-flags: -Z parse-only
2015-04-03 02:56:27 +00:00
enum BtNode {
Node(u32,Box<BtNode>,Box<BtNode>),
Leaf(u32),
}
2015-02-19 14:01:57 +00:00
fn main() {
2015-04-03 02:56:27 +00:00
let y = match x {
Foo<T>::A(value) => value, //~ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
Foo<T>::B => 7,
};
2015-02-19 14:01:57 +00:00
}