rust/tests/ui/imports/nested-import-root-symbol-150103.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

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() {}