@@ -6,6 +6,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
66 |
77 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
88 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
9+ = note: the matched value is of type `i32`
910help: you might want to use `if let` to ignore the variant that isn't matched
1011 |
1112LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
@@ -19,6 +20,7 @@ LL | static Y: i32 = { let 0 = 0; 0 };
1920 |
2021 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
2122 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
23+ = note: the matched value is of type `i32`
2224help: you might want to use `if let` to ignore the variant that isn't matched
2325 |
2426LL | static Y: i32 = { if let 0 = 0 { /* */ } 0 };
@@ -32,6 +34,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
3234 |
3335 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
3436 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
37+ = note: the matched value is of type `i32`
3538help: you might want to use `if let` to ignore the variant that isn't matched
3639 |
3740LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
@@ -45,6 +48,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
4548 |
4649 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
4750 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
51+ = note: the matched value is of type `i32`
4852help: you might want to use `if let` to ignore the variant that isn't matched
4953 |
5054LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
0 commit comments