summary refs log tree commit diff
path: root/src/test/ui/feature-gate-const_let.stderr
blob: 6a7f6255678ff2ac117e1ec1481a7107accfe926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0658]: let bindings in constant functions are unstable (see issue #48821)
  --> $DIR/feature-gate-const_let.rs:16:13
   |
LL |     let x = 42;
   |             ^^
   |
   = help: add #![feature(const_let)] to the crate attributes to enable

error[E0658]: statements in constant functions are unstable (see issue #48821)
  --> $DIR/feature-gate-const_let.rs:16:13
   |
LL |     let x = 42;
   |             ^^
   |
   = help: add #![feature(const_let)] to the crate attributes to enable

error: aborting due to 2 previous errors

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