mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
324 B
Rust
13 lines
324 B
Rust
#![feature(proc_macro_tracked_env)]
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
use proc_macro::*;
|
|
|
|
#[proc_macro]
|
|
pub fn access_env_vars(_: TokenStream) -> TokenStream {
|
|
let _ = tracked_env::var("EXISTING_PROC_MACRO_ENV");
|
|
let _ = tracked_env::var("NONEXISTENT_PROC_MACEO_ENV");
|
|
TokenStream::new()
|
|
}
|