mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
18 lines
205 B
Rust
18 lines
205 B
Rust
//@ 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() {
|
|
}
|