rust/tests/ui/imports/tool-mod-child.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

48 lines
1.4 KiB
Text

error[E0433]: cannot find module or crate `clippy` in the crate root
--> $DIR/tool-mod-child.rs:3:5
|
LL | use clippy::a::b;
| ^^^^^^ use of unresolved module or unlinked crate `clippy`
|
help: you might be missing a crate named `clippy`, add it to your project and import it in your code
|
LL + extern crate clippy;
|
error[E0432]: unresolved import `clippy`
--> $DIR/tool-mod-child.rs:2:5
|
LL | use clippy::a;
| ^^^^^^ use of unresolved module or unlinked crate `clippy`
|
help: you might be missing a crate named `clippy`, add it to your project and import it in your code
|
LL + extern crate clippy;
|
error[E0433]: cannot find module or crate `rustdoc` in the crate root
--> $DIR/tool-mod-child.rs:6:5
|
LL | use rustdoc::a::b;
| ^^^^^^^ use of unresolved module or unlinked crate `rustdoc`
|
help: you might be missing a crate named `rustdoc`, add it to your project and import it in your code
|
LL + extern crate rustdoc;
|
error[E0432]: unresolved import `rustdoc`
--> $DIR/tool-mod-child.rs:5:5
|
LL | use rustdoc::a;
| ^^^^^^^ use of unresolved module or unlinked crate `rustdoc`
|
help: you might be missing a crate named `rustdoc`, add it to your project and import it in your code
|
LL + extern crate rustdoc;
|
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.