rust/tests/ui/proc-macro/nested-derive-cfg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
472 B
Rust
Raw Normal View History

2021-02-28 19:51:44 +00:00
//@ compile-flags: -Z span-debug --error-format human
//@ proc-macro: test-macros.rs
2021-02-28 19:51:44 +00:00
//@ check-pass
#![no_std] // Don't load unnecessary hygiene information from std
extern crate std;
#[macro_use]
extern crate test_macros;
#[derive(Print)]
struct Foo {
2025-03-29 17:24:03 +00:00
#[cfg(false)] removed: bool,
2021-02-28 19:51:44 +00:00
my_array: [bool; {
struct Inner {
2025-03-29 17:24:03 +00:00
#[cfg(false)] removed_inner_field: u8,
2021-02-28 19:51:44 +00:00
non_removed_inner_field: usize
}
0
}]
}
fn main() {}