blob: 3f3e12eed6c6f05106071dbd6fbbabdf4a30d6a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// force-host
// no-prefer-dynamic
#![feature(proc_macro_quote)]
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::*;
#[proc_macro]
pub fn dollar_ident(input: TokenStream) -> TokenStream {
let black_hole = input.into_iter().next().unwrap();
quote! {
$black_hole!($$var);
}
}
|