]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use-mod.stderr
Auto merge of #50665 - alexcrichton:fix-single-item-path-warnings, r=oli-obk
[rust.git] / src / test / ui / use-mod.stderr
1 error[E0430]: `self` import can only appear once in an import list
2   --> $DIR/use-mod.rs:12:5
3    |
4 LL |     self,
5    |     ^^^^ can only appear once in an import list
6 ...
7 LL |     self
8    |     ---- another `self` import appears here
9
10 error[E0431]: `self` import can only appear in an import list with a non-empty prefix
11   --> $DIR/use-mod.rs:19:6
12    |
13 LL | use {self};
14    |      ^^^^ can only appear in an import list with a non-empty prefix
15
16 error[E0252]: the name `bar` is defined multiple times
17   --> $DIR/use-mod.rs:15:5
18    |
19 LL |     self,
20    |     ---- previous import of the module `bar` here
21 ...
22 LL |     self
23    |     ^^^^ `bar` reimported here
24    |
25    = note: `bar` must be defined only once in the type namespace of this module
26 help: You can use `as` to change the binding name of the import
27    |
28 LL |     self as other_bar
29    |
30
31 error: aborting due to 3 previous errors
32
33 Some errors occurred: E0252, E0430, E0431.
34 For more information about an error, try `rustc --explain E0252`.