]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass-fulldeps/proc-macro/derive-attr-cfg.rs
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / run-pass-fulldeps / proc-macro / derive-attr-cfg.rs
CommitLineData
54a0048b 1// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
223e47cc
LB
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
ea8adc8c
XL
11// aux-build:derive-attr-cfg.rs
12// ignore-stage1
13
94b46f34 14#![feature(use_extern_macros)]
ea8adc8c
XL
15
16extern crate derive_attr_cfg;
17use derive_attr_cfg::Foo;
18
19#[derive(Foo)]
20#[foo]
21struct S {
22 #[cfg(any())]
23 x: i32
a7813a04
XL
24}
25
26fn main() {
54a0048b 27}