about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorblyxyas <blyxyas@gmail.com>2023-07-26 23:16:24 +0200
committerblyxyas <blyxyas@gmail.com>2023-07-26 23:16:24 +0200
commit3bfccacca97cb7d4d7751fc90b89b3381b8b8b35 (patch)
tree19d7dbf2dfb34c622f7187664eab5cadb31724a1 /tests
parent4e1db44404bbd11f3644c0402e5b1f5358c1b532 (diff)
downloadrust-3bfccacca97cb7d4d7751fc90b89b3381b8b8b35.tar.gz
rust-3bfccacca97cb7d4d7751fc90b89b3381b8b8b35.zip
Add comments + Very minor Refactor
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/option_env_unwrap.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/option_env_unwrap.stderr b/tests/ui/option_env_unwrap.stderr
index 7698b4b0216..cfa9dd58a30 100644
--- a/tests/ui/option_env_unwrap.stderr
+++ b/tests/ui/option_env_unwrap.stderr
@@ -18,8 +18,8 @@ LL |     let _ = option_env!("PATH").expect("environment variable PATH isn't set
 error: this will panic at run-time if the environment variable doesn't exist at compile-time
   --> $DIR/option_env_unwrap.rs:12:13
    |
-LL |     let _ = option_env!("Y").unwrap(); // This test only works if you don't have a __Y__do_not_use env variable in your environment.
-   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
+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...
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider using the `env!` macro instead