rust/tests/ui/imports/suggest-import-issue-120074.edition2021.stderr

24 lines
719 B
Plaintext
Raw Normal View History

error[E0433]: failed to resolve: unresolved import
2024-07-04 04:55:00 -05:00
--> $DIR/suggest-import-issue-120074.rs:12: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 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`.