rust/tests/ui/option_env_unwrap.stderr
2020-02-08 16:44:35 -08:00

23 lines
859 B
Text

error: this will panic at run-time if the environment variable doesn't exist
--> $DIR/option_env_unwrap.rs:10:13
|
LL | let _ = option_env!("HOME").unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::option-env-unwrap` implied by `-D warnings`
= help: consider using the `env!` macro instead
error: this will panic at run-time if the environment variable doesn't exist
--> $DIR/option_env_unwrap.rs:5:9
|
LL | option_env!($env).unwrap()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | let _ = option_env_unwrap!("HOME");
| -------------------------- in this macro invocation
|
= help: consider using the `env!` macro instead
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors