rust/tests/ui/did_you_mean/issue-114112.rs

12 lines
203 B
Rust
Raw Normal View History

2023-08-01 10:30:40 -05:00
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:?}");
},
}
}