rust/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs
2023-01-11 09:32:08 +00:00

16 lines
316 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()
}