fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
537 B13 linesraw
1error[E0658]: `while` is not allowed in a `const`
2  --> $DIR/const-labeled-break.rs:10:19
3   |
4LL | const CRASH: () = 'a: while break 'a {};
5   |                   ^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8   = help: add `#![feature(const_loop)]` to the crate attributes to enable
9   = help: add `#![feature(const_if_match)]` to the crate attributes to enable
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0658`.