]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-labeled-break.stderr
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-labeled-break.stderr
1 error[E0658]: `while` is not allowed in a `const`
2   --> $DIR/const-labeled-break.rs:10:19
3    |
4 LL | const CRASH: () = 'a: while break 'a {};
5    |                   ^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information
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
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0658`.