fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a reference pointing to a static variable 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; 1 warning emitted 16 17For more information about this error, try `rustc --explain E0080`.