rust/tests/ui/variants/variant-namespacing.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
3.6 KiB
Plaintext
Raw Normal View History

2018-08-08 20:28:26 +08:00
error[E0255]: the name `XStruct` is defined multiple times
2018-12-25 23:56:47 +08:00
--> $DIR/variant-namespacing.rs:24:35
2018-08-08 20:28:26 +08:00
|
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
2018-08-08 20:28:26 +08:00
|
LL | pub use variant_namespacing::XE::{XStruct as OtherXStruct, XTuple, XUnit};
| +++++++++++++++
2018-08-08 20:28:26 +08:00
error[E0255]: the name `XTuple` is defined multiple times
2018-12-25 23:56:47 +08:00
--> $DIR/variant-namespacing.rs:24:44
2018-08-08 20:28:26 +08:00
|
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
2018-08-08 20:28:26 +08:00
|
LL | pub use variant_namespacing::XE::{XStruct, XTuple as OtherXTuple, XUnit};
| ++++++++++++++
2018-08-08 20:28:26 +08:00
error[E0255]: the name `XUnit` is defined multiple times
2018-12-25 23:56:47 +08:00
--> $DIR/variant-namespacing.rs:24:52
2018-08-08 20:28:26 +08:00
|
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
2018-08-08 20:28:26 +08:00
|
LL | pub use variant_namespacing::XE::{XStruct, XTuple, XUnit as OtherXUnit};
| +++++++++++++
2018-08-08 20:28:26 +08:00
error[E0255]: the name `Struct` is defined multiple times
2018-12-25 23:56:47 +08:00
--> $DIR/variant-namespacing.rs:28:13
2018-08-08 20:28:26 +08:00
|
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
2018-08-08 20:28:26 +08:00
|
LL | pub use E::{Struct as OtherStruct, Tuple, Unit};
| ++++++++++++++
2018-08-08 20:28:26 +08:00
error[E0255]: the name `Tuple` is defined multiple times
2018-12-25 23:56:47 +08:00
--> $DIR/variant-namespacing.rs:28:21
2018-08-08 20:28:26 +08:00
|
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
2018-08-08 20:28:26 +08:00
|
LL | pub use E::{Struct, Tuple as OtherTuple, Unit};
| +++++++++++++
2018-08-08 20:28:26 +08:00
error[E0255]: the name `Unit` is defined multiple times
2018-12-25 23:56:47 +08:00
--> $DIR/variant-namespacing.rs:28:28
2018-08-08 20:28:26 +08:00
|
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
2018-08-08 20:28:26 +08:00
|
LL | pub use E::{Struct, Tuple, Unit as OtherUnit};
| ++++++++++++
2018-08-08 20:28:26 +08:00
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0255`.