]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-prop-read-static-in-const.rs
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-prop-read-static-in-const.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
2
3 #![allow(dead_code)]
4
5 const TEST: u8 = MY_STATIC; //~ ERROR any use of this value will cause an error
6
7 static MY_STATIC: u8 = 4;
8
9 fn main() {
10 }