]> git.lizzy.rs Git - rust.git/blob - src/test/ui/write-to-static-mut-in-static.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / write-to-static-mut-in-static.stderr
1 error[E0658]: statements in statics are unstable (see issue #48821)
2   --> $DIR/write-to-static-mut-in-static.rs:14:33
3    |
4 LL | pub static mut B: () = unsafe { A = 1; };
5    |                                 ^^^^^
6    |
7    = help: add #![feature(const_let)] to the crate attributes to enable
8
9 error[E0658]: statements in statics are unstable (see issue #48821)
10   --> $DIR/write-to-static-mut-in-static.rs:17:34
11    |
12 LL | pub static mut C: u32 = unsafe { C = 1; 0 };
13    |                                  ^^^^^
14    |
15    = help: add #![feature(const_let)] to the crate attributes to enable
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0658`.