1
Fork 0

expand env! with def-site context

This commit is contained in:
Andy Russell 2020-05-26 19:45:30 -04:00
parent 5239f5c57b
commit 68bf8d2487
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
5 changed files with 9 additions and 0 deletions

View file

@ -47,6 +47,8 @@ error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
|
LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: format argument must be a string literal
--> $DIR/macros-nonfatal-errors.rs:23:13