1 error[E0764]: mutable references are not allowed in the final value of constants
2 --> $DIR/issue-17718-const-bad-values.rs:1:34
4 LL | const C1: &'static mut [usize] = &mut [];
7 error[E0013]: constants cannot refer to statics
8 --> $DIR/issue-17718-const-bad-values.rs:5:46
10 LL | const C2: &'static mut usize = unsafe { &mut S };
13 = help: consider extracting the value of the `static` to a `const`, and referring to that
15 error[E0013]: constants cannot refer to statics
16 --> $DIR/issue-17718-const-bad-values.rs:5:46
18 LL | const C2: &'static mut usize = unsafe { &mut S };
21 = help: consider extracting the value of the `static` to a `const`, and referring to that
23 error: aborting due to 3 previous errors
25 Some errors have detailed explanations: E0013, E0764.
26 For more information about an error, try `rustc --explain E0013`.