Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-44239.rs
blob: b07c3f6dbeffcb300a75add1d510f24dcc099b05 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![
allow
(
dead_code
,
non_upper_case_globals
)]
fn
main
()
{
let
n
:
usize
=
0
;
struct
Foo
;
impl
Foo
{
const
N
:
usize
=
n
;
//~^ ERROR attempt to use a non-constant value
}
}