mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 18:40:49 +00:00
13 lines
269 B
Rust
13 lines
269 B
Rust
extern crate proc_macro;
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro_derive(Issue39889)]
|
|
pub fn f(_input: TokenStream) -> TokenStream {
|
|
let rules = r#"
|
|
macro_rules! id {
|
|
($($tt:tt)*) => { $($tt)* };
|
|
}
|
|
"#;
|
|
rules.parse().unwrap()
|
|
}
|