@@ -16,7 +16,15 @@ LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set
1616 = help: consider using the `env!` macro instead
1717
1818error: this will panic at run-time if the environment variable doesn't exist at compile-time
19- --> $DIR/option_env_unwrap.rs:12:21
19+ --> $DIR/option_env_unwrap.rs:12:13
20+ |
21+ LL | let _ = option_env!("__Y__do_not_use").unwrap(); // This test only works if you don't have a __Y__do_not_use env variable in your env...
22+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+ |
24+ = help: consider using the `env!` macro instead
25+
26+ error: this will panic at run-time if the environment variable doesn't exist at compile-time
27+ --> $DIR/option_env_unwrap.rs:13:21
2028 |
2129LL | let _ = inline!(option_env!($"PATH").unwrap());
2230 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -25,7 +33,7 @@ LL | let _ = inline!(option_env!($"PATH").unwrap());
2533 = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
2634
2735error: this will panic at run-time if the environment variable doesn't exist at compile-time
28- --> $DIR/option_env_unwrap.rs:13 :21
36+ --> $DIR/option_env_unwrap.rs:14 :21
2937 |
3038LL | let _ = inline!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
3139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -34,7 +42,7 @@ LL | let _ = inline!(option_env!($"PATH").expect($"environment variable PATH
3442 = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
3543
3644error: this will panic at run-time if the environment variable doesn't exist at compile-time
37- --> $DIR/option_env_unwrap.rs:14 :13
45+ --> $DIR/option_env_unwrap.rs:15 :13
3846 |
3947LL | let _ = external!(option_env!($"PATH").unwrap());
4048 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -43,13 +51,13 @@ LL | let _ = external!(option_env!($"PATH").unwrap());
4351 = note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)
4452
4553error: this will panic at run-time if the environment variable doesn't exist at compile-time
46- --> $DIR/option_env_unwrap.rs:15 :13
54+ --> $DIR/option_env_unwrap.rs:16 :13
4755 |
4856LL | let _ = external!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
4957 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5058 |
5159 = help: consider using the `env!` macro instead
5260 = note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)
5361
54- error: aborting due to 6 previous errors
62+ error: aborting due to 7 previous errors
5563
0 commit comments