fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
888 B25 linesraw
1error[E0019]: constant contains unimplemented expression type
2  --> $DIR/single_variant_match_ice.rs:5:24
3   |
4LL | const FOO: u32 = match Foo::Prob {
5   |                        ^^^^^^^^^
6
7error[E0019]: constant contains unimplemented expression type
8  --> $DIR/single_variant_match_ice.rs:9:24
9   |
10LL | const BAR: u32 = match Foo::Prob {
11   |                        ^^^^^^^^^
12
13error[E0723]: loops and conditional expressions are not stable in const fn
14  --> $DIR/single_variant_match_ice.rs:17:15
15   |
16LL |         match *self {
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
22error: aborting due to 3 previous errors
23
24Some errors have detailed explanations: E0019, E0723.
25For more information about an error, try `rustc --explain E0019`.