mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
12 lines
236 B
Rust
12 lines
236 B
Rust
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,
|
|
};
|
|
}
|