Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit ef047f7

Browse files
committed
ices/109523.rs: fixed with errors
=== 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`. ==============
1 parent b13a3f8 commit ef047f7

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)