summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/issue-62272.stderr
blob: a02bbe557cf97dbcda06376a65a9b2e1b2394512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0658]: `loop` is not allowed in a `const`
  --> $DIR/issue-62272.rs:7:17
   |
LL | const FOO: () = loop { break; };
   |                 ^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/52000
   = help: add `#![feature(const_loop)]` to the crate attributes to enable

error[E0658]: `loop` is not allowed in a `const`
  --> $DIR/issue-62272.rs:10:20
   |
LL |     [FOO; { let x; loop { x = 5; break; } x }];
   |                    ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/52000
   = help: add `#![feature(const_loop)]` to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.