mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 03:09:54 +00:00
9 lines
192 B
Rust
9 lines
192 B
Rust
extern crate proc_macro;
|
|
|
|
use proc_macro::*;
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn foo(_attr: TokenStream, _f: TokenStream) -> TokenStream {
|
|
"pub fn foo() -> ::Foo { ::Foo }".parse().unwrap()
|
|
}
|