@@ -6,6 +6,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
6
6
|
7
7
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
8
8
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
9
+ = note: the matched value is of type `i32`
9
10
help: you might want to use `if let` to ignore the variant that isn't matched
10
11
|
11
12
LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
@@ -19,6 +20,7 @@ LL | static Y: i32 = { let 0 = 0; 0 };
19
20
|
20
21
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
21
22
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
23
+ = note: the matched value is of type `i32`
22
24
help: you might want to use `if let` to ignore the variant that isn't matched
23
25
|
24
26
LL | static Y: i32 = { if let 0 = 0 { /* */ } 0 };
@@ -32,6 +34,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
32
34
|
33
35
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
34
36
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
37
+ = note: the matched value is of type `i32`
35
38
help: you might want to use `if let` to ignore the variant that isn't matched
36
39
|
37
40
LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
@@ -45,6 +48,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
45
48
|
46
49
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
47
50
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
51
+ = note: the matched value is of type `i32`
48
52
help: you might want to use `if let` to ignore the variant that isn't matched
49
53
|
50
54
LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
0 commit comments