2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2018-04-15 09:17:18 -05:00
|
|
|
// `#[cfg]` on struct field permits empty unusable struct
|
2015-02-09 13:01:45 -06:00
|
|
|
|
2015-09-10 14:46:52 -05:00
|
|
|
struct S {
|
|
|
|
#[cfg(untrue)]
|
|
|
|
a: int,
|
|
|
|
}
|
2013-03-27 20:17:58 -05:00
|
|
|
|
2015-09-10 14:46:52 -05:00
|
|
|
fn main() {
|
|
|
|
let s = S {};
|
|
|
|
}
|