]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-prop-read-static-in-const.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-prop-read-static-in-const.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
2 // run-pass
3
4 #![allow(dead_code)]
5
6 const TEST: u8 = MY_STATIC;
7 //~^ skipping const checks
8
9 static MY_STATIC: u8 = 4;
10
11 fn main() {
12 }