2020-06-15 10:50:27 -05:00
|
|
|
// aux-build:first-second.rs
|
|
|
|
|
|
|
|
extern crate first_second;
|
|
|
|
use first_second::*;
|
|
|
|
|
|
|
|
macro_rules! produce_it {
|
|
|
|
($name:ident) => {
|
2020-06-24 00:52:48 -05:00
|
|
|
#[first]
|
2020-06-15 10:50:27 -05:00
|
|
|
struct $name {
|
2020-06-24 00:52:48 -05:00
|
|
|
field: MissingType //~ ERROR cannot find type
|
2020-06-15 10:50:27 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
produce_it!(MyName);
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("Hello, world!");
|
|
|
|
}
|