]> git.proxmox.com Git - rustc.git/blame - src/test/pretty/attr-derive.rs
Update unsuspicious file list
[rustc.git] / src / test / pretty / attr-derive.rs
CommitLineData
8bb4bdeb 1// aux-build:derive-foo.rs
8bb4bdeb
XL
2// pp-exact
3// Testing that both the inner item and next outer item are
4// preserved, and that the first outer item parsed in main is not
5// accidentally carried over to each inner function
6
7#[macro_use]
8extern crate derive_foo;
9
10#[derive(Foo)]
11struct X;
12
13#[derive(Foo)]
14#[Bar]
15struct Y;
16
17#[derive(Foo)]
18struct WithRef {
19 x: X,
20 #[Bar]
21 y: Y,
22}
23
24#[derive(Foo)]
25enum Enum {
26
27 #[Bar]
28 Asdf,
29 Qwerty,
30}
31
a2a8927a 32fn main() {}