rust/tests/ui/dollar-crate/dollar-crate-is-keyword-2.rs
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

19 lines
557 B
Rust

mod a {}
macro_rules! m {
() => {
use a::$crate; //~ ERROR: unresolved import `a::$crate`
//~^ NOTE: no `$crate` in `a`
use a::$crate::b; //~ ERROR: `$crate` in paths can only be used in start position
//~^ NOTE: can only be used in path start position
type A = a::$crate; //~ ERROR: `$crate` in paths can only be used in start position
//~^ NOTE: can only be used in path start position
}
}
m!();
//~^ NOTE: in this expansion
//~| NOTE: in this expansion
//~| NOTE: in this expansion
fn main() {}