]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/auxiliary/derive-a.rs
normalize stderr
[rust.git] / src / test / ui / proc-macro / auxiliary / derive-a.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5
6 extern crate proc_macro;
7
8 use proc_macro::TokenStream;
9
10 #[proc_macro_derive(A)]
11 pub fn derive(input: TokenStream) -> TokenStream {
12     let input = input.to_string();
13     assert!(input.contains("struct A ;"));
14     "".parse().unwrap()
15 }