@@ -5,7 +5,7 @@ LL | let 0 = v1;
55 | ^ pattern `1_u32..=u32::MAX` not covered
66 |
77 = 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
99 = note: the matched value is of type `u32`
1010help: you might want to use `if let` to ignore the variant that isn't matched
1111 |
@@ -23,7 +23,7 @@ LL | let (0 | 1) = v1;
2323 | ^^^^^ pattern `2_u32..=u32::MAX` not covered
2424 |
2525 = 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
2727 = note: the matched value is of type `u32`
2828help: you might want to use `if let` to ignore the variant that isn't matched
2929 |
@@ -37,7 +37,7 @@ LL | let 1.. = v1;
3737 | ^^^ pattern `0_u32` not covered
3838 |
3939 = 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
4141 = note: the matched value is of type `u32`
4242help: you might want to use `if let` to ignore the variant that isn't matched
4343 |
@@ -51,7 +51,7 @@ LL | let [0, 0, 0, 0] = v2;
5151 | ^^^^^^^^^^^^ pattern `[1_u32..=u32::MAX, _, _, _]` not covered
5252 |
5353 = 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
5555 = note: the matched value is of type `[u32; 4]`
5656help: you might want to use `if let` to ignore the variant that isn't matched
5757 |
@@ -65,7 +65,7 @@ LL | let [0] = v4;
6565 | ^^^ patterns `&[]` and `&[_, _, ..]` not covered
6666 |
6767 = 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
6969 = note: the matched value is of type `&[u32]`
7070help: you might want to use `if let` to ignore the variants that aren't matched
7171 |
@@ -79,7 +79,7 @@ LL | let Refutable::A = v3;
7979 | ^^^^^^^^^^^^ pattern `Refutable::B` not covered
8080 |
8181 = 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
8383note: `Refutable` defined here
8484 --> $DIR/bad-pattern.rs:4:6
8585 |
@@ -104,7 +104,7 @@ LL | let PAT = v1;
104104 | ^^^ pattern `1_u32..=u32::MAX` not covered
105105 |
106106 = 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
108108 = note: the matched value is of type `u32`
109109help: introduce a variable instead
110110 |
0 commit comments