blob: 3a5767edb153d5b4f6ea6d797f7793a9a37c35a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::{TokenStream, TokenTree};
#[proc_macro]
pub fn print_tokens(input: TokenStream) -> TokenStream {
println!("{:#?}", input);
for token in input {
println!("{token}");
}
TokenStream::new()
}
|