fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
715 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
15error[E0381]: use of possibly-uninitialized variable: `u`
16  --> $DIR/empty-never-array.rs:12:5
17   |
18LL |     u
19   |     ^ use of possibly-uninitialized `u`
20
21error: aborting due to 2 previous errors
22
23Some errors have detailed explanations: E0005, E0381.
24For more information about an error, try `rustc --explain E0005`.