rust/src/test/run-pass/proc-macro/derive-attr-cfg.rs

16 lines
190 B
Rust
Raw Normal View History

#![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() {
}