rust/tests/ui/use/use-mod/use-mod-6.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
524 B
Plaintext
Raw Normal View History

2020-05-03 11:56:52 -05:00
error[E0429]: `self` imports are only allowed within a { } list
--> $DIR/use-mod-6.rs:7:13
|
LL | use foo::bar::self as abc;
| ^^^^^^
|
2020-05-19 15:12:41 -05:00
help: consider importing the module directly
2020-05-03 11:56:52 -05:00
|
LL - use foo::bar::self as abc;
LL + use foo::bar as abc;
2022-06-08 12:34:57 -05:00
|
2020-05-19 15:12:41 -05:00
help: alternatively, use the multi-path `use` syntax to import `self`
2020-05-03 11:56:52 -05:00
|
LL | use foo::bar::{self as abc};
| + +
2020-05-03 11:56:52 -05:00
error: aborting due to 1 previous error
2020-05-03 11:56:52 -05:00
For more information about this error, try `rustc --explain E0429`.