2018-08-08 07:28:26 -05:00
|
|
|
error[E0429]: `self` imports are only allowed within a { } list
|
2020-05-03 11:54:21 -05:00
|
|
|
--> $DIR/use-mod-4.rs:1:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use foo::self;
|
2020-05-03 11:54:21 -05:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
2020-05-19 15:12:41 -05:00
|
|
|
help: consider importing the module directly
|
2020-05-03 11:54:21 -05:00
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - use foo::self;
|
|
|
|
LL + use foo;
|
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:54:21 -05:00
|
|
|
|
|
|
|
|
LL | use foo::{self};
|
2021-06-21 21:07:19 -05:00
|
|
|
| + +
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0429]: `self` imports are only allowed within a { } list
|
2020-05-03 11:54:21 -05:00
|
|
|
--> $DIR/use-mod-4.rs:4:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use std::mem::self;
|
2020-05-03 11:54:21 -05:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
2020-05-19 15:12:41 -05:00
|
|
|
help: consider importing the module directly
|
2020-05-03 11:54:21 -05:00
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - use std::mem::self;
|
|
|
|
LL + use std::mem;
|
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:54:21 -05:00
|
|
|
|
|
|
|
|
LL | use std::mem::{self};
|
2021-06-21 21:07:19 -05:00
|
|
|
| + +
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0432]: unresolved import `foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/use-mod-4.rs:1:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use foo::self;
|
2020-05-03 11:56:52 -05:00
|
|
|
| ^^^^^^^^^ no `foo` in the root
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0429, E0432.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0429`.
|