summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/auxiliary/gen-macro-rules.rs
blob: d4b67d6b0b07c419a2a72ef63aec4ef7a348473e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// force-host
// no-prefer-dynamic

#![crate_type = "proc-macro"]

extern crate proc_macro;
use proc_macro::TokenStream;

#[proc_macro_derive(repro)]
pub fn proc_macro_hack_expr(_input: TokenStream) -> TokenStream {
    "macro_rules! m {()=>{}}".parse().unwrap()
}