Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
associated-consts
/
associated-const-marks-live-code.rs
blob: 68eb4e25d3311a6fe3b5da5ab0d1659792d7a186 [
file
] [
log
] [
blame
]
// 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
;
}