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