mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 23:05:53 +00:00
12 lines
238 B
Rust
12 lines
238 B
Rust
enum BtNode {
|
|
Node(u32,Box<BtNode>,Box<BtNode>),
|
|
Leaf(u32),
|
|
}
|
|
|
|
fn main() {
|
|
let y = match 10 {
|
|
Foo<T>::A(value) => value, //~ ERROR generic args in patterns require the turbofish syntax
|
|
Foo<T>::B => 7,
|
|
};
|
|
}
|