]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/macro-rules-derive.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / macro-rules-derive.rs
1 // aux-build:first-second.rs
2
3 extern crate first_second;
4 use first_second::*;
5
6 macro_rules! produce_it {
7     ($name:ident) => {
8         #[first]
9         struct $name {
10             field: MissingType //~ ERROR cannot find type
11         }
12     }
13 }
14
15 produce_it!(MyName);
16
17 fn main() {
18     println!("Hello, world!");
19 }