mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +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()
|
|
}
|