summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-prop-read-static-in-const.rs
blob: a65b707f012d00475e329fe947c8ad6ad8d90026 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -Zunleash-the-miri-inside-of-you

#![allow(dead_code)]

const TEST: u8 = MY_STATIC; //~ ERROR any use of this value will cause an error
//~| WARN this was previously accepted by the compiler but is being phased out

static MY_STATIC: u8 = 4;

fn main() {
}