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
|
|
|
|
|
2021-06-21 21:07:19 -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};
|
2021-06-21 21:07:19 -05:00
|
|
|
| + +
|
2020-05-03 11:56:52 -05:00
|
|
|
|
2023-11-21 09:44:16 -06: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`.
|