rust/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs

16 lines
318 B
Rust

//@ force-host
//@ no-prefer-dynamic
#![crate_type = "proc-macro"]
#![crate_name = "macro_dump_debug"]
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro]
pub fn dump_debug(tokens: TokenStream) -> TokenStream {
eprintln!("{:?}", tokens);
eprintln!("{:#?}", tokens);
TokenStream::new()
}