fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0005]: refutable pattern in local binding 2 --> $DIR/empty-never-array.rs:10:9 3 | 4LL | let Helper::U(u) = Helper::T(t, []); 5 | ^^^^^^^^^^^^ pattern `Helper::T(_, _)` not covered 6 | 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 9note: `Helper<T, U>` defined here 10 --> $DIR/empty-never-array.rs:3:6 11 | 12LL | enum Helper<T, U> { 13 | ^^^^^^ 14LL | T(T, [!; 0]), 15 | - not covered 16 = note: the matched value is of type `Helper<T, U>` 17help: you might want to use `let else` to handle the variant that isn't matched 18 | 19LL | let Helper::U(u) = Helper::T(t, []) else { todo!() }; 20 | ++++++++++++++++ 21 22error: aborting due to previous error 23 24For more information about this error, try `rustc --explain E0005`.