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

Commit

Permalink
ices/92074.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
error: arbitrary expressions aren't allowed in patterns
 --> /home/runner/work/glacier/glacier/ices/92074.rs:8:31
  |
8 |     assert!(matches!(x, En::A(vec![])));
  |                               ^^^^^^
  |
  = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0601]: `main` function not found in crate `92074`
  --> /home/runner/work/glacier/glacier/ices/92074.rs:1:1
   |
1  | / pub enum En {
2  | |     A(Vec<u8>)
3  | | }
4  | |
...  |
9  | |     Ok::<(), &'static str>(())
10 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/92074.rs`

warning: unreachable statement
 --> /home/runner/work/glacier/glacier/ices/92074.rs:8:5
  |
6 |     let x: En = loop {};
  |                 ------- any code following this expression is unreachable
7 | 
8 |     assert!(matches!(x, En::A(vec![])));
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
  |
  = note: `#[warn(unreachable_code)]` on by default
  = note: this warning originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0601`.
==============
  • Loading branch information
rustbot committed Jan 4, 2022
1 parent fd47c63 commit 62ffc23
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 62ffc23

Please sign in to comment.