rust/tests/pretty/issue-68710-field-attr-proc-mac-lost.rs

18 lines
203 B
Rust
Raw Normal View History

2020-02-01 11:45:03 -06:00
// pp-exact
2021-12-01 13:45:14 -06:00
fn main() {}
2020-02-01 11:45:03 -06:00
struct C {
field: u8,
}
#[allow()]
const C: C =
C {
#[cfg(debug_assertions)]
field: 0,
2020-02-01 11:45:03 -06:00
#[cfg(not(debug_assertions))]
field: 1,
};