mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
14 lines
249 B
Rust
14 lines
249 B
Rust
//! regression test for <https://github.com/rust-lang/rust/issues/16819>
|
|
//@ run-pass
|
|
#![allow(unused_variables)]
|
|
// `#[cfg]` on struct field permits empty unusable struct
|
|
|
|
struct S {
|
|
#[cfg(false)]
|
|
a: int,
|
|
}
|
|
|
|
fn main() {
|
|
let s = S {};
|
|
}
|