rust/tests/ui/consts/const-prop-read-static-in-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
163 B
Rust
Raw Normal View History

// compile-flags: -Zunleash-the-miri-inside-of-you
#![allow(dead_code)]
2022-09-21 06:05:20 -05:00
const TEST: u8 = MY_STATIC; //~ ERROR constant
static MY_STATIC: u8 = 4;
fn main() {
}