summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/struct-field-macro.rs
blob: 460f4d9f726f34be38ada828199932b5b83f9c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// run-pass

#![allow(dead_code)]
// aux-build:derive-nothing.rs

#[macro_use]
extern crate derive_nothing;

macro_rules! int {
    () => { i32 }
}

#[derive(Nothing)]
struct S {
    x: int!(),
}

fn main() {}