mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:06:20 +00:00
9 lines
222 B
Rust
9 lines
222 B
Rust
extern crate proc_macro;
|
|
|
|
use proc_macro::{Literal, TokenStream, TokenTree};
|
|
|
|
#[proc_macro]
|
|
pub fn from_inside_proc_macro(_input: TokenStream) -> TokenStream {
|
|
proc_macro::is_available().to_string().parse().unwrap()
|
|
}
|