]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-points-to-static.rs
Rollup merge of #70134 - hermitcore:osstrext, r=dtolnay
[rust.git] / src / test / ui / consts / const-points-to-static.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
2
3 #![allow(dead_code)]
4
5 const TEST: &u8 = &MY_STATIC;
6 //~^ skipping const checks
7 //~| it is undefined behavior to use this value
8
9 static MY_STATIC: u8 = 4;
10
11 fn main() {
12 }