mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:39:20 +00:00
13 lines
212 B
Rust
13 lines
212 B
Rust
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro_derive(Unstable)]
|
|
pub fn derive(_input: TokenStream) -> TokenStream {
|
|
|
|
"
|
|
#[rustc_foo]
|
|
fn foo() {}
|
|
".parse().unwrap()
|
|
}
|