mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
22 lines
448 B
Rust
22 lines
448 B
Rust
//@ force-host
|
|
//@ no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro]
|
|
pub fn fn_like(input: TokenStream) -> TokenStream {
|
|
"".parse().unwrap()
|
|
}
|
|
|
|
#[proc_macro_derive(PmDerive)]
|
|
pub fn pm_derive(item: TokenStream) -> TokenStream {
|
|
"".parse().unwrap()
|
|
}
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn pm_attr(attr: TokenStream, item: TokenStream) -> TokenStream {
|
|
"".parse().unwrap()
|
|
}
|