]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/struct-field-macro.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / 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() {}