mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 12:18:33 +00:00
12 lines
250 B
Rust
12 lines
250 B
Rust
![]() |
#![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()
|
||
|
}
|