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` ```
23 lines
715 B
Text
23 lines
715 B
Text
error[E0433]: cannot find `bar` in `crate`
|
|
--> $DIR/suggest-import-issue-120074.rs:14:35
|
|
|
|
|
LL | println!("Hello, {}!", crate::bar::do_the_thing);
|
|
| ^^^ unresolved import
|
|
|
|
|
help: a similar path exists
|
|
|
|
|
LL | println!("Hello, {}!", crate::foo::bar::do_the_thing);
|
|
| +++++
|
|
help: consider importing this module
|
|
|
|
|
LL + use crate::foo::bar;
|
|
|
|
|
help: if you import `bar`, refer to it directly
|
|
|
|
|
LL - println!("Hello, {}!", crate::bar::do_the_thing);
|
|
LL + println!("Hello, {}!", bar::do_the_thing);
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|