2023-04-23 06:03:09 -05:00
|
|
|
//@aux-build:proc_macros.rs
|
2020-02-08 18:44:35 -06:00
|
|
|
#![warn(clippy::option_env_unwrap)]
|
2021-12-06 05:33:31 -06:00
|
|
|
#![allow(clippy::map_flatten)]
|
2020-02-08 18:44:35 -06:00
|
|
|
|
2023-03-24 08:04:35 -05:00
|
|
|
extern crate proc_macros;
|
|
|
|
use proc_macros::{external, inline_macros};
|
2020-02-08 18:44:35 -06:00
|
|
|
|
2023-03-24 08:04:35 -05:00
|
|
|
#[inline_macros]
|
2020-02-08 18:44:35 -06:00
|
|
|
fn main() {
|
2020-02-09 16:12:40 -06:00
|
|
|
let _ = option_env!("PATH").unwrap();
|
|
|
|
let _ = option_env!("PATH").expect("environment variable PATH isn't set");
|
2023-03-24 08:04:35 -05:00
|
|
|
let _ = inline!(option_env!($"PATH").unwrap());
|
|
|
|
let _ = inline!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
|
|
|
|
let _ = external!(option_env!($"PATH").unwrap());
|
|
|
|
let _ = external!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
|
2020-02-08 18:44:35 -06:00
|
|
|
}
|