summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/derive-attr-cfg.rs
blob: 3947746286da0441e5eeaec65fba23422e046fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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() {
}