2019-12-16 08:23:42 -06:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you
|
2021-03-31 03:09:16 -05:00
|
|
|
// stderr-per-bitwidth
|
2019-12-16 08:23:42 -06:00
|
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
const TEST: &u8 = &MY_STATIC;
|
2020-05-03 07:23:08 -05:00
|
|
|
//~^ ERROR it is undefined behavior to use this value
|
2021-05-15 08:10:14 -05:00
|
|
|
//~| encountered a reference pointing to a static variable
|
2019-12-16 08:23:42 -06:00
|
|
|
|
|
|
|
static MY_STATIC: u8 = 4;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|