blob: 657dd9c22c21b1a4d3c7ba3f183ea8fa1fedb321 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
enum E {
One(i32, i32),
}
fn main() {
let var = E::One;
if let E::One(var1, var2) = var {
//~^ ERROR mismatched types
//~| HELP use parentheses to construct this tuple variant
println!("{var1} {var2}");
}
let Some(x) = Some;
//~^ ERROR mismatched types
//~| HELP use parentheses to construct this tuple variant
}
|