Sign in
rust
/
rust
/
6ea369cfee9420f6fe3f89e4bff7b01ac0ef920d
/
.
/
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
}