Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
lint
/
dead-code
/
pub-field-in-priv-mod.rs
blob: e49a164e9401bea51672a30fcd8025546e7136ad [
file
] [
log
] [
blame
] [
edit
]
#![
deny
(
dead_code
)]
fn
main
()
{
let
_
=
foo
::
S
{
f
:
false
};
}
mod
foo
{
pub
struct
S
{
pub
f
:
bool
,
//~ ERROR field `f` is never read
}
}