2019-09-13 08:40:43 -04:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you
|
|
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2019-12-16 15:23:42 +01:00
|
|
|
const TEST: u8 = MY_STATIC; //~ ERROR any use of this value will cause an error
|
2021-01-30 14:49:22 +01:00
|
|
|
//~| WARN this was previously accepted by the compiler but is being phased out
|
2019-09-13 08:40:43 -04:00
|
|
|
|
|
|
|
static MY_STATIC: u8 = 4;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|