mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
14 lines
289 B
Rust
14 lines
289 B
Rust
// force-host
|
|
// no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
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()
|
|
}
|