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

20 lines
487 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-5.rs:7:13
|
LL | use foo::bar::self;
| ^^^^^^
|
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;
LL + use foo::bar;
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};
| + +
2020-05-03 11:56:52 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0429`.