@@ -16,7 +16,15 @@ LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set
16
16
= help: consider using the `env!` macro instead
17
17
18
18
error: 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
20
28
|
21
29
LL | let _ = inline!(option_env!($"PATH").unwrap());
22
30
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -25,7 +33,7 @@ LL | let _ = inline!(option_env!($"PATH").unwrap());
25
33
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
26
34
27
35
error: 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
29
37
|
30
38
LL | let _ = inline!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
31
39
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -34,7 +42,7 @@ LL | let _ = inline!(option_env!($"PATH").expect($"environment variable PATH
34
42
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
35
43
36
44
error: 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
38
46
|
39
47
LL | let _ = external!(option_env!($"PATH").unwrap());
40
48
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -43,13 +51,13 @@ LL | let _ = external!(option_env!($"PATH").unwrap());
43
51
= note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)
44
52
45
53
error: 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
47
55
|
48
56
LL | let _ = external!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
49
57
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
58
|
51
59
= help: consider using the `env!` macro instead
52
60
= note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)
53
61
54
- error: aborting due to 6 previous errors
62
+ error: aborting due to 7 previous errors
55
63
0 commit comments