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:5
13 error[E0255]: the name `foo` is defined multiple times
14 --> $DIR/import-self.rs:6:11
17 | ------- previous definition of the module `foo` here
20 | ^^^^ `foo` reimported here
22 = note: `foo` must be defined only once in the type namespace of this module
23 help: you can use `as` to change the binding name of the import
25 LL | use foo::{self as other_foo};
28 error[E0252]: the name `A` is defined multiple times
29 --> $DIR/import-self.rs:16:11
32 | ------ previous import of the type `A` here
33 LL | use foo::{self as A};
34 | ^^^^^^^^^ `A` reimported here
36 = note: `A` must be defined only once in the type namespace of this module
37 help: you can use `as` to change the binding name of the import
39 LL | use foo::{self as OtherA};
42 error: aborting due to 4 previous errors
44 Some errors have detailed explanations: E0252, E0255, E0429.
45 For more information about an error, try `rustc --explain E0252`.