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

Commit eb5d217

Browse files
committed
ices/66706-2.rs: fixed with errors
=== stdout === === stderr === error: expected identifier, found reserved identifier `_` --> /home/runner/work/glacier/glacier/ices/66706-2.rs:2:26 | 2 | [0; match [|f @ &ref _| () ] {} ] | ^ expected identifier, found reserved identifier error[E0658]: `match` is not allowed in a `const` --> /home/runner/work/glacier/glacier/ices/66706-2.rs:2:9 | 2 | [0; match [|f @ &ref _| () ] {} ] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #49146 <rust-lang/rust#49146> for more information = help: add `#![feature(const_if_match)]` to the crate attributes to enable error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/66706-2.rs:2:5 | 1 | fn bug() { | - help: try adding a return type: `-> [{integer}; _]` 2 | [0; match [|f @ &ref _| () ] {} ] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]` error: aborting due to 3 previous errors Some errors have detailed explanations: E0308, E0658. For more information about an error, try `rustc --explain E0308`. ==============
1 parent dbcb062 commit eb5d217

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

ices/66706-2.rs fixed/66706-2.rs

File renamed without changes.

0 commit comments

Comments
 (0)