]>
git.proxmox.com Git - rustc.git/blob - tests/ui/consts/const-points-to-static.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
6 const TEST
: &u8 = &MY_STATIC
;
7 //~^ ERROR it is undefined behavior to use this value
8 //~| encountered a reference pointing to a static variable
10 static MY_STATIC
: u8 = 4;