diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/proc-macro/derive-attr-cfg.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/derive-attr-cfg.rs b/src/test/ui/proc-macro/derive-attr-cfg.rs new file mode 100644 index 000000000..394774628 --- /dev/null +++ b/src/test/ui/proc-macro/derive-attr-cfg.rs @@ -0,0 +1,17 @@ +// run-pass + +#![allow(dead_code)] +// aux-build:derive-attr-cfg.rs + +extern crate derive_attr_cfg; +use derive_attr_cfg::Foo; + +#[derive(Foo)] +#[foo] +struct S { + #[cfg(any())] + x: i32 +} + +fn main() { +} |