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
238 B
Rust
Raw Normal View History

2015-04-03 05:56:27 +03:00
enum BtNode {
Node(u32,Box<BtNode>,Box<BtNode>),
Leaf(u32),
}
2015-02-19 22:01:57 +08:00
fn main() {
let y = match 10 {
2023-08-01 23:30:40 +08:00
Foo<T>::A(value) => value, //~ ERROR generic args in patterns require the turbofish syntax
2015-04-03 05:56:27 +03:00
Foo<T>::B => 7,
};
2015-02-19 22:01:57 +08:00
}