summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/macro-rules-derive.rs
blob: e0c40bbc7344ecb6feebbb3c17e85bfca7232571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// aux-build:first-second.rs

extern crate first_second;
use first_second::*;

macro_rules! produce_it {
    ($name:ident) => {
        #[first]
        struct $name {
            field: MissingType //~ ERROR cannot find type
        }
    }
}

produce_it!(MyName);

fn main() {
    println!("Hello, world!");
}