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` ```
19 lines
557 B
Rust
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() {}
|