Files
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
1.1 KiB
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0429]: `self` imports are only allowed within a { } list
--> $DIR/use-mod-4.rs:1:15
2018-08-08 14:28:26 +02:00
|
LL | use crate::foo::self;
| ^^^^^^
2020-05-03 18:54:21 +02:00
|
2020-05-19 22:12:41 +02:00
help: consider importing the module directly
2020-05-03 18:54:21 +02:00
|
LL - use crate::foo::self;
LL + use crate::foo;
2022-06-08 20:34:57 +03:00
|
2020-05-19 22:12:41 +02:00
help: alternatively, use the multi-path `use` syntax to import `self`
2020-05-03 18:54:21 +02:00
|
LL | use crate::foo::{self};
| + +
2018-08-08 14:28:26 +02:00
error[E0429]: `self` imports are only allowed within a { } list
2020-05-03 18:54:21 +02:00
--> $DIR/use-mod-4.rs:4:13
2018-08-08 14:28:26 +02:00
|
LL | use std::mem::self;
2020-05-03 18:54:21 +02:00
| ^^^^^^
|
2020-05-19 22:12:41 +02:00
help: consider importing the module directly
2020-05-03 18:54:21 +02:00
|
LL - use std::mem::self;
LL + use std::mem;
2022-06-08 20:34:57 +03:00
|
2020-05-19 22:12:41 +02:00
help: alternatively, use the multi-path `use` syntax to import `self`
2020-05-03 18:54:21 +02:00
|
LL | use std::mem::{self};
| + +
2018-08-08 14:28:26 +02:00
error[E0432]: unresolved import `crate::foo`
2018-12-25 08:56:47 -07:00
--> $DIR/use-mod-4.rs:1:5
2018-08-08 14:28:26 +02:00
|
LL | use crate::foo::self;
| ^^^^^^^^^^^^^^^^ no `foo` in the root
2018-08-08 14:28:26 +02:00
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0429, E0432.
2018-08-08 14:28:26 +02:00
For more information about an error, try `rustc --explain E0429`.