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

Commit fb1082d

Browse files
ices/67405.rs: fixed with errors (#276)
=== stdout === === stderr === error[E0658]: `match` is not allowed in a `const` --> /home/runner/work/glacier/glacier/ices/67405.rs:2:17 | 2 | inner: [(); match || 1 { | _________________^ 3 | | n => n(), 4 | | }], | |_____^ | = note: for more information, see rust-lang/rust#49146 = help: add `#![feature(const_if_match)]` to the crate attributes to enable error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants --> /home/runner/work/glacier/glacier/ices/67405.rs:3:14 | 3 | n => n(), | ^^^ error[E0080]: evaluation of constant value failed --> /home/runner/work/glacier/glacier/ices/67405.rs:3:14 | 3 | n => n(), | ^^^ calling non-const function `Bug::inner::{{constant}}#0::{{closure}}#0` error: aborting due to 3 previous errors Some errors have detailed explanations: E0015, E0080, E0658. For more information about an error, try `rustc --explain E0015`. ============== Co-authored-by: rustbot <[email protected]>
1 parent eaf6d20 commit fb1082d

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)