fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: it is undefined behavior to use this value 2 --> $DIR/const-points-to-static.rs:6:1 3 | 4LL | const TEST: &u8 = &MY_STATIC; 5 | ^^^^^^^^^^^^^^^ constructing invalid value: encountered a reference pointing to a static variable in a constant 6 | 7 = 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. 8 = note: the raw bytes of the constant (size: 8, align: 8) { 9 ╾───────alloc1────────╼ │ ╾──────╼ 10 } 11 12warning: skipping const checks 13 | 14help: skipping check that does not even have a feature gate 15 --> $DIR/const-points-to-static.rs:6:20 16 | 17LL | const TEST: &u8 = &MY_STATIC; 18 | ^^^^^^^^^ 19 20error: aborting due to previous error; 1 warning emitted 21 22For more information about this error, try `rustc --explain E0080`.