mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 20:17:50 +00:00
8 lines
214 B
Rust
8 lines
214 B
Rust
extern crate proc_macro;
|
|
use proc_macro::*;
|
|
|
|
#[proc_macro]
|
|
pub fn square_twice(_item: TokenStream) -> TokenStream {
|
|
"(square(env::vars().count() as i32), square(env::vars().count() as i32))".parse().unwrap()
|
|
}
|