fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
3.6 KiB93 linesraw
1error[E0255]: the name `XStruct` is defined multiple times
2  --> $DIR/variant-namespacing.rs:24:35
3   |
4LL | type XStruct = u8;
5   | ------------------ previous definition of the type `XStruct` here
6...
7LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
8   |                                   ^^^^^^^ `XStruct` reimported here
9   |
10   = note: `XStruct` must be defined only once in the type namespace of this module
11help: you can use `as` to change the binding name of the import
12   |
13LL | pub use variant_namespacing::XE::{XStruct as OtherXStruct, XTuple, XUnit};
14   |                                   ^^^^^^^^^^^^^^^^^^^^^^^
15
16error[E0255]: the name `XTuple` is defined multiple times
17  --> $DIR/variant-namespacing.rs:24:44
18   |
19LL | type XTuple = u8;
20   | ----------------- previous definition of the type `XTuple` here
21...
22LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
23   |                                            ^^^^^^ `XTuple` reimported here
24   |
25   = note: `XTuple` must be defined only once in the type namespace of this module
26help: you can use `as` to change the binding name of the import
27   |
28LL | pub use variant_namespacing::XE::{XStruct, XTuple as OtherXTuple, XUnit};
29   |                                            ^^^^^^^^^^^^^^^^^^^^^
30
31error[E0255]: the name `XUnit` is defined multiple times
32  --> $DIR/variant-namespacing.rs:24:52
33   |
34LL | type XUnit = u8;
35   | ---------------- previous definition of the type `XUnit` here
36...
37LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
38   |                                                    ^^^^^ `XUnit` reimported here
39   |
40   = note: `XUnit` must be defined only once in the type namespace of this module
41help: you can use `as` to change the binding name of the import
42   |
43LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit as OtherXUnit};
44   |                                                    ^^^^^^^^^^^^^^^^^^^
45
46error[E0255]: the name `Struct` is defined multiple times
47  --> $DIR/variant-namespacing.rs:28:13
48   |
49LL | type Struct = u8;
50   | ----------------- previous definition of the type `Struct` here
51...
52LL | pub use E::{Struct, Tuple, Unit};
53   |             ^^^^^^ `Struct` reimported here
54   |
55   = note: `Struct` must be defined only once in the type namespace of this module
56help: you can use `as` to change the binding name of the import
57   |
58LL | pub use E::{Struct as OtherStruct, Tuple, Unit};
59   |             ^^^^^^^^^^^^^^^^^^^^^
60
61error[E0255]: the name `Tuple` is defined multiple times
62  --> $DIR/variant-namespacing.rs:28:21
63   |
64LL | type Tuple = u8;
65   | ---------------- previous definition of the type `Tuple` here
66...
67LL | pub use E::{Struct, Tuple, Unit};
68   |                     ^^^^^ `Tuple` reimported here
69   |
70   = note: `Tuple` must be defined only once in the type namespace of this module
71help: you can use `as` to change the binding name of the import
72   |
73LL | pub use E::{Struct, Tuple as OtherTuple, Unit};
74   |                     ^^^^^^^^^^^^^^^^^^^
75
76error[E0255]: the name `Unit` is defined multiple times
77  --> $DIR/variant-namespacing.rs:28:28
78   |
79LL | type Unit = u8;
80   | --------------- previous definition of the type `Unit` here
81...
82LL | pub use E::{Struct, Tuple, Unit};
83   |                            ^^^^ `Unit` reimported here
84   |
85   = note: `Unit` must be defined only once in the type namespace of this module
86help: you can use `as` to change the binding name of the import
87   |
88LL | pub use E::{Struct, Tuple, Unit as OtherUnit};
89   |                            ^^^^^^^^^^^^^^^^^
90
91error: aborting due to 6 previous errors
92
93For more information about this error, try `rustc --explain E0255`.