Closed
Description
#![feature(const_let)]
static mut FOO: usize = unsafe {
FOO = 42;
5
};
fn main() {
}
results in
error[E0658]: statements in statics are unstable (see issue #48821)
--> src/main.rs:4:5
|
4 | FOO = 42;
| ^^^^^^^^
|
= help: add #![feature(const_let)] to the crate attributes to enable
even though the feature gate is active (it should still error, but with a more targeted error message)