]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/struct-field-macro.rs
Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup
[rust.git] / src / test / ui / proc-macro / struct-field-macro.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // aux-build:derive-nothing.rs
5
6 #[macro_use]
7 extern crate derive_nothing;
8
9 macro_rules! int {
10     () => { i32 }
11 }
12
13 #[derive(Nothing)]
14 struct S {
15     x: int!(),
16 }
17
18 fn main() {}