Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
associated-consts
/
associated-const-marks-live-code.rs
blob: 123650cfd0b3ced9a27af539b39e5d4273fe910b [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
deny
(
dead_code
)]
const
GLOBAL_BAR
:
u32
=
1
;
struct
Foo
;
impl
Foo
{
const
BAR
:
u32
=
GLOBAL_BAR
;
}
pub
fn
main
()
{
let
_
:
u32
=
Foo
::
BAR
;
}