Sign in
rust
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
consts
/
non-constant-value-in-nested-const.fixed
blob: 9942537b489348d2fe648051ac82d517fad109f9 [
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)]
let
FOO
:
u32
=
foo
;
//~^ ERROR attempt to use a non-constant value in a constant
}