2020-05-03 16:56:52 +00: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 20:12:41 +00:00
|
|
|
help: consider importing the module directly
|
2020-05-03 16:56:52 +00:00
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - use foo::bar::self;
|
|
|
|
LL + use foo::bar;
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-05-19 20:12:41 +00:00
|
|
|
help: alternatively, use the multi-path `use` syntax to import `self`
|
2020-05-03 16:56:52 +00:00
|
|
|
|
|
|
|
|
LL | use foo::bar::{self};
|
2021-06-22 02:07:19 +00:00
|
|
|
| + +
|
2020-05-03 16:56:52 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-05-03 16:56:52 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0429`.
|