]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/issue-17718-const-bad-values.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / consts / issue-17718-const-bad-values.stderr
CommitLineData
5869c6ff 1error[E0764]: mutable references are not allowed in the final value of constants
0731742a 2 --> $DIR/issue-17718-const-bad-values.rs:1:34
8faf50e0
XL
3 |
4LL | const C1: &'static mut [usize] = &mut [];
5869c6ff 5 | ^^^^^^^
8faf50e0 6
dfeec247 7error[E0013]: constants cannot refer to statics
60c5eb7d 8 --> $DIR/issue-17718-const-bad-values.rs:5:46
8faf50e0
XL
9 |
10LL | const C2: &'static mut usize = unsafe { &mut S };
60c5eb7d 11 | ^
dfeec247
XL
12 |
13 = help: consider extracting the value of the `static` to a `const`, and referring to that
14
15error[E0013]: constants cannot refer to statics
16 --> $DIR/issue-17718-const-bad-values.rs:5:46
17 |
18LL | const C2: &'static mut usize = unsafe { &mut S };
19 | ^
20 |
21 = help: consider extracting the value of the `static` to a `const`, and referring to that
8faf50e0 22
5869c6ff 23error: aborting due to 3 previous errors
8faf50e0 24
f035d41b 25Some errors have detailed explanations: E0013, E0764.
8faf50e0 26For more information about an error, try `rustc --explain E0013`.