fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
968 B33 linesraw
1error[E0430]: `self` import can only appear once in an import list
2  --> $DIR/use-mod.rs:2:5
3   |
4LL |     self,
5   |     ^^^^ can only appear once in an import list
6...
7LL |     self
8   |     ---- another `self` import appears here
9
10error[E0431]: `self` import can only appear in an import list with a non-empty prefix
11  --> $DIR/use-mod.rs:9:6
12   |
13LL | use {self};
14   |      ^^^^ can only appear in an import list with a non-empty prefix
15
16error[E0252]: the name `bar` is defined multiple times
17  --> $DIR/use-mod.rs:5:5
18   |
19LL |     self,
20   |     ---- previous import of the module `bar` here
21...
22LL |     self
23   |     ^^^^
24   |     |
25   |     `bar` reimported here
26   |     help: remove unnecessary import
27   |
28   = note: `bar` must be defined only once in the type namespace of this module
29
30error: aborting due to 3 previous errors
31
32Some errors have detailed explanations: E0252, E0430, E0431.
33For more information about an error, try `rustc --explain E0252`.