]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/single_variant_match_ice.stderr
Reword const fn conditional and loop error text
[rust.git] / src / test / ui / consts / single_variant_match_ice.stderr
1 error[E0019]: constant contains unimplemented expression type
2   --> $DIR/single_variant_match_ice.rs:6:5
3    |
4 LL |     Foo::Prob => 42,
5    |     ^^^^^^^^^
6
7 error[E0019]: constant contains unimplemented expression type
8   --> $DIR/single_variant_match_ice.rs:10:5
9    |
10 LL |     x => 42,
11    |     ^
12
13 error[E0723]: loops and conditional expressions are not stable in const fn
14   --> $DIR/single_variant_match_ice.rs:18:13
15    |
16 LL |             Prob => 0x1,
17    |             ^^^^
18    |
19    = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
20    = help: add #![feature(const_fn)] to the crate attributes to enable
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0019, E0723.
25 For more information about an error, try `rustc --explain E0019`.