1 error: expected identifier, found keyword `self`
2 --> $DIR/import-self.rs:9:12
5 | ^^^^ expected identifier, found keyword
7 error[E0429]: `self` imports are only allowed within a { } list
8 --> $DIR/import-self.rs:12:8
13 help: consider importing the module directly
18 help: alternatively, use the multi-path `use` syntax to import `self`
23 error[E0255]: the name `foo` is defined multiple times
24 --> $DIR/import-self.rs:6:11
27 | ------- previous definition of the module `foo` here
30 | ^^^^ `foo` reimported here
32 = note: `foo` must be defined only once in the type namespace of this module
33 help: you can use `as` to change the binding name of the import
35 LL | use foo::{self as other_foo};
38 error[E0255]: the name `foo` is defined multiple times
39 --> $DIR/import-self.rs:12:5
42 | ------- previous definition of the module `foo` here
45 | ^^^^^^^^^ `foo` reimported here
47 = note: `foo` must be defined only once in the type namespace of this module
48 help: you can use `as` to change the binding name of the import
50 LL | use foo as other_foo;
53 error[E0252]: the name `A` is defined multiple times
54 --> $DIR/import-self.rs:16:11
57 | ------ previous import of the type `A` here
58 LL | use foo::{self as A};
59 | ^^^^^^^^^ `A` reimported here
61 = note: `A` must be defined only once in the type namespace of this module
62 help: you can use `as` to change the binding name of the import
64 LL | use foo::{self as OtherA};
67 error: aborting due to 5 previous errors
69 Some errors have detailed explanations: E0252, E0255, E0429.
70 For more information about an error, try `rustc --explain E0252`.