@@ -42,6 +42,50 @@ LL | | };
42
42
|
43
43
= help: add #![feature(const_let)] to the crate attributes to enable
44
44
45
- error: aborting due to 4 previous errors
45
+ error[E0658]: let bindings in statics are unstable (see issue #48821)
46
+ --> $DIR/feature-gate-const_let.rs:25: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:25: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:22: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:22: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
46
90
47
91
For more information about this error, try `rustc --explain E0658`.
0 commit comments