rust/tests/ui/dollar-crate/dollar-crate-is-keyword-2.stderr
Esteban Küber c73b3d20c6 Unify wording of resolve error
Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`".

```
error[E0433]: cannot find `nonexistent` in `existent`
  --> $DIR/custom_attr_multisegment_error.rs:5:13
   |
LL | #[existent::nonexistent]
   |             ^^^^^^^^^^^ could not find `nonexistent` in `existent`
```
2026-02-17 16:51:44 +00:00

37 lines
1.2 KiB
Text

error[E0433]: `$crate` in paths can only be used in start position
--> $DIR/dollar-crate-is-keyword-2.rs:7:16
|
LL | use a::$crate::b;
| ^^^^^^ can only be used in path start position
...
LL | m!();
| ---- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import `a::$crate`
--> $DIR/dollar-crate-is-keyword-2.rs:5:13
|
LL | use a::$crate;
| ^^^^^^^^^ no `$crate` in `a`
...
LL | m!();
| ---- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: `$crate` in paths can only be used in start position
--> $DIR/dollar-crate-is-keyword-2.rs:9:21
|
LL | type A = a::$crate;
| ^^^^^^ can only be used in path start position
...
LL | m!();
| ---- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.