Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
issues
/
issue-27433.fixed
blob: f847b698976a00f5e1f2b6a10b2ee60919d4d866 [
file
]
//@ 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
}