1 error: this will panic at run-time if the environment variable doesn't exist at compile-time
2 --> $DIR/option_env_unwrap.rs:17:13
4 LL | let _ = option_env!("PATH").unwrap();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::option-env-unwrap` implied by `-D warnings`
8 = help: consider using the `env!` macro instead
10 error: this will panic at run-time if the environment variable doesn't exist at compile-time
11 --> $DIR/option_env_unwrap.rs:18:13
13 LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set");
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = help: consider using the `env!` macro instead
18 error: this will panic at run-time if the environment variable doesn't exist at compile-time
19 --> $DIR/option_env_unwrap.rs:9:9
21 LL | option_env!($env).unwrap()
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
24 LL | let _ = option_env_unwrap!("PATH");
25 | -------------------------- in this macro invocation
27 = help: consider using the `env!` macro instead
28 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
30 error: this will panic at run-time if the environment variable doesn't exist at compile-time
31 --> $DIR/option_env_unwrap.rs:12:9
33 LL | option_env!($env).expect($message)
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 LL | let _ = option_env_unwrap!("PATH", "environment variable PATH isn't set");
37 | ----------------------------------------------------------------- in this macro invocation
39 = help: consider using the `env!` macro instead
40 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
42 error: this will panic at run-time if the environment variable doesn't exist at compile-time
43 --> $DIR/option_env_unwrap.rs:21:13
45 LL | let _ = option_env_unwrap_external!("PATH");
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 = help: consider using the `env!` macro instead
49 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
51 error: this will panic at run-time if the environment variable doesn't exist at compile-time
52 --> $DIR/option_env_unwrap.rs:22:13
54 LL | let _ = option_env_unwrap_external!("PATH", "environment variable PATH isn't set");
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 = help: consider using the `env!` macro instead
58 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60 error: aborting due to 6 previous errors