mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
12 lines
203 B
Rust
12 lines
203 B
Rust
enum E<T> {
|
|
A(T)
|
|
}
|
|
|
|
fn main() {
|
|
match E::<i32>::A(1) {
|
|
E<i32>::A(v) => { //~ ERROR generic args in patterns require the turbofish syntax
|
|
println!("{v:?}");
|
|
},
|
|
}
|
|
}
|