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