rust/tests/run-make/env-dep-info/macro_def.rs
2023-01-11 09:32:08 +00:00

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()
}