• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // compile-flags: -Z span-debug --error-format human
2 // aux-build:test-macros.rs
3 // check-pass
4 
5 #![no_std] // Don't load unnecessary hygiene information from std
6 extern crate std;
7 
8 #[macro_use]
9 extern crate test_macros;
10 
11 #[derive(Print)]
12 struct Foo {
13     #[cfg(FALSE)] removed: bool,
14     my_array: [bool; {
15         struct Inner {
16             #[cfg(FALSE)] removed_inner_field: u8,
17             non_removed_inner_field: usize
18         }
19         0
20     }]
21 }
22 
main()23 fn main() {}
24