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` ```
13 lines
383 B
Rust
13 lines
383 B
Rust
// Issue: https://github.com/rust-lang/rust/issues/150103
|
|
// ICE when using `::` at start of nested imports
|
|
// caused by `{{root}}` appearing in diagnostic suggestions
|
|
|
|
mod A {
|
|
use Iuse::{ ::Fish }; //~ ERROR cannot find module or crate `Iuse` in the crate root
|
|
}
|
|
|
|
mod B {
|
|
use A::{::Fish}; //~ ERROR the crate root in paths can only be used in start position
|
|
}
|
|
|
|
fn main() {}
|