Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
associated-const
/
associated-const-dead-code.rs
blob: c47e474d2dd741dfc10d76b5fbddcab500d214ed [
file
] [
log
] [
blame
]
#![
deny
(
dead_code
)]
struct
MyFoo
;
impl
MyFoo
{
const
BAR
:
u32
=
1
;
//~^ ERROR associated const is never used: `BAR`
}
fn
main
()
{
let
_
:
MyFoo
=
MyFoo
;
}