]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-prop-read-static-in-const.rs
Do not suggest `let_else` if no bindings would be introduced
[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 //~| WARN this was previously accepted by the compiler but is being phased out
7
8 static MY_STATIC: u8 = 4;
9
10 fn main() {
11 }