about summary refs log tree commit diff
path: root/tests/ui/lint/dead-code/pub-field-in-priv-mod.rs
blob: e49a164e9401bea51672a30fcd8025546e7136ad (plain)
1
2
3
4
5
6
7
8
9
10
11
#![deny(dead_code)]

fn main() {
    let _ = foo::S{f: false};
}

mod foo {
    pub struct S {
        pub f: bool, //~ ERROR field `f` is never read
    }
}