@@ -5,7 +5,7 @@ LL | let 0 = v1;
5
5
| ^ pattern `1_u32..=u32::MAX` not covered
6
6
|
7
7
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
8
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
8
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
9
9
= note: the matched value is of type `u32`
10
10
help: you might want to use `if let` to ignore the variant that isn't matched
11
11
|
@@ -23,7 +23,7 @@ LL | let (0 | 1) = v1;
23
23
| ^^^^^ pattern `2_u32..=u32::MAX` not covered
24
24
|
25
25
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
26
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
26
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
27
27
= note: the matched value is of type `u32`
28
28
help: you might want to use `if let` to ignore the variant that isn't matched
29
29
|
@@ -37,7 +37,7 @@ LL | let 1.. = v1;
37
37
| ^^^ pattern `0_u32` not covered
38
38
|
39
39
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
40
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
40
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
41
41
= note: the matched value is of type `u32`
42
42
help: you might want to use `if let` to ignore the variant that isn't matched
43
43
|
@@ -51,7 +51,7 @@ LL | let [0, 0, 0, 0] = v2;
51
51
| ^^^^^^^^^^^^ pattern `[1_u32..=u32::MAX, _, _, _]` not covered
52
52
|
53
53
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
54
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
54
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
55
55
= note: the matched value is of type `[u32; 4]`
56
56
help: you might want to use `if let` to ignore the variant that isn't matched
57
57
|
@@ -65,7 +65,7 @@ LL | let [0] = v4;
65
65
| ^^^ patterns `&[]` and `&[_, _, ..]` not covered
66
66
|
67
67
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
68
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
68
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
69
69
= note: the matched value is of type `&[u32]`
70
70
help: you might want to use `if let` to ignore the variants that aren't matched
71
71
|
@@ -79,7 +79,7 @@ LL | let Refutable::A = v3;
79
79
| ^^^^^^^^^^^^ pattern `Refutable::B` not covered
80
80
|
81
81
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
82
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
82
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
83
83
note: `Refutable` defined here
84
84
--> $DIR/bad-pattern.rs:4:6
85
85
|
@@ -104,7 +104,7 @@ LL | let PAT = v1;
104
104
| ^^^ pattern `1_u32..=u32::MAX` not covered
105
105
|
106
106
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
107
- = note: for more information, visit https://doc.rust-lang.org/book/ch18 -02-refutability.html
107
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19 -02-refutability.html
108
108
= note: the matched value is of type `u32`
109
109
help: introduce a variable instead
110
110
|
0 commit comments