rust/tests/ui/parser/pat-lt-bracket-4.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
236 B
Rust
Raw Normal View History

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() {
let y = match 10 {
2015-04-03 02:56:27 +00:00
Foo<T>::A(value) => value, //~ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
Foo<T>::B => 7,
};
2015-02-19 14:01:57 +00:00
}