File: variant-namespacing.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (93 lines) | stat: -rw-r--r-- 3,688 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
error[E0255]: the name `XStruct` is defined multiple times
  --> $DIR/variant-namespacing.rs:24:35
   |
LL | type XStruct = u8;
   | ------------------ previous definition of the type `XStruct` here
...
LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
   |                                   ^^^^^^^ `XStruct` reimported here
   |
   = note: `XStruct` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | pub use variant_namespacing::XE::{XStruct as OtherXStruct, XTuple, XUnit};
   |                                           +++++++++++++++

error[E0255]: the name `XTuple` is defined multiple times
  --> $DIR/variant-namespacing.rs:24:44
   |
LL | type XTuple = u8;
   | ----------------- previous definition of the type `XTuple` here
...
LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
   |                                            ^^^^^^ `XTuple` reimported here
   |
   = note: `XTuple` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | pub use variant_namespacing::XE::{XStruct, XTuple as OtherXTuple, XUnit};
   |                                                   ++++++++++++++

error[E0255]: the name `XUnit` is defined multiple times
  --> $DIR/variant-namespacing.rs:24:52
   |
LL | type XUnit = u8;
   | ---------------- previous definition of the type `XUnit` here
...
LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
   |                                                    ^^^^^ `XUnit` reimported here
   |
   = note: `XUnit` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit as OtherXUnit};
   |                                                          +++++++++++++

error[E0255]: the name `Struct` is defined multiple times
  --> $DIR/variant-namespacing.rs:28:13
   |
LL | type Struct = u8;
   | ----------------- previous definition of the type `Struct` here
...
LL | pub use E::{Struct, Tuple, Unit};
   |             ^^^^^^ `Struct` reimported here
   |
   = note: `Struct` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | pub use E::{Struct as OtherStruct, Tuple, Unit};
   |                    ++++++++++++++

error[E0255]: the name `Tuple` is defined multiple times
  --> $DIR/variant-namespacing.rs:28:21
   |
LL | type Tuple = u8;
   | ---------------- previous definition of the type `Tuple` here
...
LL | pub use E::{Struct, Tuple, Unit};
   |                     ^^^^^ `Tuple` reimported here
   |
   = note: `Tuple` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | pub use E::{Struct, Tuple as OtherTuple, Unit};
   |                           +++++++++++++

error[E0255]: the name `Unit` is defined multiple times
  --> $DIR/variant-namespacing.rs:28:28
   |
LL | type Unit = u8;
   | --------------- previous definition of the type `Unit` here
...
LL | pub use E::{Struct, Tuple, Unit};
   |                            ^^^^ `Unit` reimported here
   |
   = note: `Unit` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | pub use E::{Struct, Tuple, Unit as OtherUnit};
   |                                 ++++++++++++

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0255`.