]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-points-to-static.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / consts / const-points-to-static.stderr
CommitLineData
dfeec247
XL
1warning: skipping const checks
2 --> $DIR/const-points-to-static.rs:5:20
3 |
4LL | const TEST: &u8 = &MY_STATIC;
5 | ^^^^^^^^^
6
7error[E0080]: it is undefined behavior to use this value
8 --> $DIR/const-points-to-static.rs:5:1
9 |
10LL | const TEST: &u8 = &MY_STATIC;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant accesses static
12 |
13 = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0080`.