]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/derive-attr-cfg.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / proc-macro / derive-attr-cfg.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // aux-build:derive-attr-cfg.rs
5
6 extern crate derive_attr_cfg;
7 use derive_attr_cfg::Foo;
8
9 #[derive(Foo)]
10 #[foo]
11 struct S {
12     #[cfg(any())]
13     x: i32
14 }
15
16 fn main() {
17 }