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

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

43 lines
1023 B
Plaintext
Raw Normal View History

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