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

#![allow(dead_code)]

const TEST: u8 = MY_STATIC; //~ ERROR constant

static MY_STATIC: u8 = 4;

fn main() {
}