2021-02-28 19:51:44 +00:00
|
|
|
//@ compile-flags: -Z span-debug --error-format human
|
2024-11-25 01:37:25 +00:00
|
|
|
//@ 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() {}
|