blob: f847b698976a00f5e1f2b6a10b2ee60919d4d866 [file] [log] [blame] [edit]
//@ run-rustfix
fn main() {
let foo = 42u32;
#[allow(unused_variables, non_snake_case)]
let FOO : u32 = foo;
//~^ ERROR attempt to use a non-constant value in a constant
}