fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
861 B24 linesraw
1error[E0005]: refutable pattern in local binding: `T(_, _)` not covered
2  --> $DIR/empty-never-array.rs:10:9
3   |
4LL | / enum Helper<T, U> {
5LL | |     T(T, [!; 0]),
6   | |     - not covered
7LL | |     #[allow(dead_code)]
8LL | |     U(U),
9LL | | }
10   | |_- `Helper<T, U>` defined here
11...
12LL |       let Helper::U(u) = Helper::T(t, []);
13   |           ^^^^^^^^^^^^ pattern `T(_, _)` not covered
14   |
15   = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
16   = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
17help: you might want to use `if let` to ignore the variant that isn't matched
18   |
19LL |     if let Helper::U(u) = Helper::T(t, []) { /* */ }
20   |
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0005`.