rust/tests/ui/imports/multiple-extern-by-macro-for-underscore.ed2015.stderr
Esteban Küber d82fb1e72d Emit a single error when importing a path with _
When encountering `use _;`, `use _::*'` or similar, do not emit two errors for that single mistake. This also side-steps the issue of resolve errors suggesting adding a crate named `_` to `Cargo.toml`.
2025-06-24 16:21:26 +00:00

9 lines
247 B
Plaintext

error: expected identifier, found reserved identifier `_`
--> $DIR/multiple-extern-by-macro-for-underscore.rs:18:11
|
LL | use ::_;
| ^ expected identifier, found reserved identifier
error: aborting due to 1 previous error