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
17 help: alternatively, use the multi-path `use` syntax to import `self`
22 error[E0255]: the name `foo` is defined multiple times
23 --> $DIR/import-self.rs:6:11
26 | ------- previous definition of the module `foo` here
29 | ^^^^ `foo` reimported here
31 = note: `foo` must be defined only once in the type namespace of this module
32 help: you can use `as` to change the binding name of the import
34 LL | use foo::{self as other_foo};
37 error[E0255]: the name `foo` is defined multiple times
38 --> $DIR/import-self.rs:12:5
41 | ------- previous definition of the module `foo` here
44 | ^^^^^^^^^ `foo` reimported here
46 = note: `foo` must be defined only once in the type namespace of this module
47 help: you can use `as` to change the binding name of the import
49 LL | use foo as other_foo;
52 error[E0252]: the name `A` is defined multiple times
53 --> $DIR/import-self.rs:16:11
56 | ------ previous import of the type `A` here
57 LL | use foo::{self as A};
58 | ^^^^^^^^^ `A` reimported here
60 = note: `A` must be defined only once in the type namespace of this module
61 help: you can use `as` to change the binding name of the import
63 LL | use foo::{self as OtherA};
66 error: aborting due to 5 previous errors
68 Some errors have detailed explanations: E0252, E0255, E0429.
69 For more information about an error, try `rustc --explain E0252`.