]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-block-non-item-statement.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-block-non-item-statement.stderr
1 error[E0658]: let bindings in constants are unstable (see issue #48821)
2   --> $DIR/const-block-non-item-statement.rs:12:21
3    |
4 LL |     Bar = { let x = 1; 3 }
5    |                     ^
6    |
7    = help: add #![feature(const_let)] to the crate attributes to enable
8
9 error[E0658]: statements in constants are unstable (see issue #48821)
10   --> $DIR/const-block-non-item-statement.rs:12:21
11    |
12 LL |     Bar = { let x = 1; 3 }
13    |                     ^
14    |
15    = help: add #![feature(const_let)] to the crate attributes to enable
16
17 error[E0658]: let bindings in constants are unstable (see issue #48821)
18   --> $DIR/const-block-non-item-statement.rs:12:11
19    |
20 LL |     Bar = { let x = 1; 3 }
21    |           ^^^^^^^^^^^^^^^^
22    |
23    = help: add #![feature(const_let)] to the crate attributes to enable
24
25 error[E0658]: statements in constants are unstable (see issue #48821)
26   --> $DIR/const-block-non-item-statement.rs:12:11
27    |
28 LL |     Bar = { let x = 1; 3 }
29    |           ^^^^^^^^^^^^^^^^
30    |
31    = help: add #![feature(const_let)] to the crate attributes to enable
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0658`.