blob: fbaba2de615d621c87a0235525381612878b4f0c [file] [edit]
//! Regression test for https://github.com/rust-lang/rust/issues/27433
//@ run-rustfix
fn main() {
let foo = 42u32;
#[allow(unused_variables, non_snake_case)]
const FOO : u32 = foo;
//~^ ERROR attempt to use a non-constant value in a constant
}