]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/auxiliary/double.rs
normalize stderr
[rust.git] / src / test / ui / proc-macro / auxiliary / double.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![feature(proc_macro_quote)]
5
6 #![crate_type = "proc-macro"]
7
8 extern crate proc_macro;
9 use proc_macro::*;
10
11 // Outputs another copy of the struct.  Useful for testing the tokens
12 // seen by the proc_macro.
13 #[proc_macro_derive(Double)]
14 pub fn derive(input: TokenStream) -> TokenStream {
15     quote!(mod foo { $input })
16 }