summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/env-dep-info/macro_def.rs
blob: e328eae48326dddb1142c3e091e6dcf3092eb608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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()
}