mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +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()
|
||
|
}
|