summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-16819.rs
blob: cc0200904e5106452e588da51925a61d8a2d6a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![allow(unused_variables)]
// `#[cfg]` on struct field permits empty unusable struct

struct S {
    #[cfg(untrue)]
    a: int,
}

fn main() {
    let s = S {};
}