You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2024. It is now read-only.
=== stdout ===
=== stderr ===
warning: unused variable: `y`
--> /home/runner/work/glacier/glacier/ices/109523.rs:10:9
|
10 | let y = || {
| ^ help: if this is intentional, prefix it with an underscore: `_y`
|
= note: `#[warn(unused_variables)]` on by default
error[E0005]: refutable pattern in local binding
--> /home/runner/work/glacier/glacier/ices/109523.rs:11:13
|
11 | let Either::Two(a) = x;
| ^^^^^^^^^^^^^^ pattern `Either::One(_)` not covered
|
= note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
= note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
note: `Either` defined here
--> /home/runner/work/glacier/glacier/ices/109523.rs:1:6
|
1 | enum Either {
| ^^^^^^
2 | One(X),
| --- not covered
= note: the matched value is of type `Either`
help: you might want to use `let else` to handle the variant that isn't matched
|
11 | let Either::Two(a) = x else { todo!() };
| ++++++++++++++++
error: aborting due to previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0005`.
==============
0 commit comments