]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variants/variant-namespacing.stderr
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
[rust.git] / src / test / ui / variants / variant-namespacing.stderr
1 error[E0255]: the name `XStruct` is defined multiple times
2   --> $DIR/variant-namespacing.rs:24:35
3    |
4 LL | type XStruct = u8;
5    | ------------------ previous definition of the type `XStruct` here
6 ...
7 LL | 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
11 help: you can use `as` to change the binding name of the import
12    |
13 LL | pub use variant_namespacing::XE::{XStruct as OtherXStruct, XTuple, XUnit};
14    |                                   ~~~~~~~~~~~~~~~~~~~~~~~
15
16 error[E0255]: the name `XTuple` is defined multiple times
17   --> $DIR/variant-namespacing.rs:24:44
18    |
19 LL | type XTuple = u8;
20    | ----------------- previous definition of the type `XTuple` here
21 ...
22 LL | 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
26 help: you can use `as` to change the binding name of the import
27    |
28 LL | pub use variant_namespacing::XE::{XStruct, XTuple as OtherXTuple, XUnit};
29    |                                            ~~~~~~~~~~~~~~~~~~~~~
30
31 error[E0255]: the name `XUnit` is defined multiple times
32   --> $DIR/variant-namespacing.rs:24:52
33    |
34 LL | type XUnit = u8;
35    | ---------------- previous definition of the type `XUnit` here
36 ...
37 LL | 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
41 help: you can use `as` to change the binding name of the import
42    |
43 LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit as OtherXUnit};
44    |                                                    ~~~~~~~~~~~~~~~~~~~
45
46 error[E0255]: the name `Struct` is defined multiple times
47   --> $DIR/variant-namespacing.rs:28:13
48    |
49 LL | type Struct = u8;
50    | ----------------- previous definition of the type `Struct` here
51 ...
52 LL | 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
56 help: you can use `as` to change the binding name of the import
57    |
58 LL | pub use E::{Struct as OtherStruct, Tuple, Unit};
59    |             ~~~~~~~~~~~~~~~~~~~~~
60
61 error[E0255]: the name `Tuple` is defined multiple times
62   --> $DIR/variant-namespacing.rs:28:21
63    |
64 LL | type Tuple = u8;
65    | ---------------- previous definition of the type `Tuple` here
66 ...
67 LL | 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
71 help: you can use `as` to change the binding name of the import
72    |
73 LL | pub use E::{Struct, Tuple as OtherTuple, Unit};
74    |                     ~~~~~~~~~~~~~~~~~~~
75
76 error[E0255]: the name `Unit` is defined multiple times
77   --> $DIR/variant-namespacing.rs:28:28
78    |
79 LL | type Unit = u8;
80    | --------------- previous definition of the type `Unit` here
81 ...
82 LL | 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
86 help: you can use `as` to change the binding name of the import
87    |
88 LL | pub use E::{Struct, Tuple, Unit as OtherUnit};
89    |                            ~~~~~~~~~~~~~~~~~
90
91 error: aborting due to 6 previous errors
92
93 For more information about this error, try `rustc --explain E0255`.