summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/issue-62272.stderr
blob: 380f68bee09ce939876b463717e89e69c4e22210 (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: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information
   = 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: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information
   = 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`.