blob: f3a19081c475fd5d2d966f621bc4968827506a39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
extern crate proc_macro;
#[proc_macro_derive(A)]
pub fn derive_a(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
"fn f() { println!(\"{}\", foo); }".parse().unwrap()
}
|