]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-const_let.stderr
MetadataOnlyCodegenBackend: remove `is_inline` call
[rust.git] / src / test / ui / feature-gates / feature-gate-const_let.stderr
1 error[E0658]: let bindings in constants are unstable (see issue #48821)
2   --> $DIR/feature-gate-const_let.rs:6:13
3    |
4 LL |     let x = 42;
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/feature-gate-const_let.rs:6:13
11    |
12 LL |     let x = 42;
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/feature-gate-const_let.rs:3:1
19    |
20 LL | / const FOO: usize = {
21 LL | |     //~^ ERROR statements in constants are unstable
22 LL | |     //~| ERROR: let bindings in constants are unstable
23 LL | |     let x = 42;
24 ...  |
25 LL | |     42
26 LL | | };
27    | |__^
28    |
29    = help: add #![feature(const_let)] to the crate attributes to enable
30
31 error[E0658]: statements in constants are unstable (see issue #48821)
32   --> $DIR/feature-gate-const_let.rs:3:1
33    |
34 LL | / const FOO: usize = {
35 LL | |     //~^ ERROR statements in constants are unstable
36 LL | |     //~| ERROR: let bindings in constants are unstable
37 LL | |     let x = 42;
38 ...  |
39 LL | |     42
40 LL | | };
41    | |__^
42    |
43    = help: add #![feature(const_let)] to the crate attributes to enable
44
45 error[E0658]: let bindings in statics are unstable (see issue #48821)
46   --> $DIR/feature-gate-const_let.rs:15:13
47    |
48 LL |     let x = 42;
49    |             ^^
50    |
51    = help: add #![feature(const_let)] to the crate attributes to enable
52
53 error[E0658]: statements in statics are unstable (see issue #48821)
54   --> $DIR/feature-gate-const_let.rs:15:13
55    |
56 LL |     let x = 42;
57    |             ^^
58    |
59    = help: add #![feature(const_let)] to the crate attributes to enable
60
61 error[E0658]: let bindings in statics are unstable (see issue #48821)
62   --> $DIR/feature-gate-const_let.rs:12:1
63    |
64 LL | / static BAR: usize = {
65 LL | |     //~^ ERROR statements in statics are unstable
66 LL | |     //~| ERROR: let bindings in statics are unstable
67 LL | |     let x = 42;
68 ...  |
69 LL | |     42
70 LL | | };
71    | |__^
72    |
73    = help: add #![feature(const_let)] to the crate attributes to enable
74
75 error[E0658]: statements in statics are unstable (see issue #48821)
76   --> $DIR/feature-gate-const_let.rs:12:1
77    |
78 LL | / static BAR: usize = {
79 LL | |     //~^ ERROR statements in statics are unstable
80 LL | |     //~| ERROR: let bindings in statics are unstable
81 LL | |     let x = 42;
82 ...  |
83 LL | |     42
84 LL | | };
85    | |__^
86    |
87    = help: add #![feature(const_let)] to the crate attributes to enable
88
89 error: aborting due to 8 previous errors
90
91 For more information about this error, try `rustc --explain E0658`.