]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/derive-helper-configured.rs
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / proc-macro / derive-helper-configured.rs
1 // Derive helpers are resolved successfully inside `cfg_attr`.
2
3 // check-pass
4 // compile-flats:--cfg TRUE
5 // aux-build:test-macros.rs
6
7 #[macro_use]
8 extern crate test_macros;
9
10 #[cfg_attr(TRUE, empty_helper)]
11 #[derive(Empty)]
12 #[cfg_attr(TRUE, empty_helper)]
13 struct S {
14     #[cfg_attr(TRUE, empty_helper)]
15     field: u8,
16 }
17
18 fn main() {}