2017-12-10 13:47:55 -06:00
|
|
|
error[E0255]: the name `Add` is defined multiple times
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-24081.rs:7:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use std::ops::Add;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Add` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | type Add = bool;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ `Add` redefined here
|
|
|
|
|
|
|
|
|
= note: `Add` must be defined only once in the type namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::ops::Add as OtherAdd;
|
2024-07-09 20:49:11 -05:00
|
|
|
| +++++++++++
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0255]: the name `Sub` is defined multiple times
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-24081.rs:9:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use std::ops::Sub;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Sub` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | struct Sub { x: f32 }
|
2017-12-18 00:44:32 -06:00
|
|
|
| ^^^^^^^^^^ `Sub` redefined here
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: `Sub` must be defined only once in the type namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::ops::Sub as OtherSub;
|
2024-07-09 20:49:11 -05:00
|
|
|
| +++++++++++
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0255]: the name `Mul` is defined multiple times
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-24081.rs:11:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use std::ops::Mul;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Mul` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | enum Mul { A, B }
|
2017-12-18 00:44:32 -06:00
|
|
|
| ^^^^^^^^ `Mul` redefined here
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: `Mul` must be defined only once in the type namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::ops::Mul as OtherMul;
|
2024-07-09 20:49:11 -05:00
|
|
|
| +++++++++++
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0255]: the name `Div` is defined multiple times
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-24081.rs:13:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use std::ops::Div;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Div` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | mod Div { }
|
2017-12-18 00:44:32 -06:00
|
|
|
| ^^^^^^^ `Div` redefined here
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: `Div` must be defined only once in the type namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::ops::Div as OtherDiv;
|
2024-07-09 20:49:11 -05:00
|
|
|
| +++++++++++
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0255]: the name `Rem` is defined multiple times
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-24081.rs:15:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use std::ops::Rem;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Rem` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | trait Rem { }
|
2017-12-18 00:44:32 -06:00
|
|
|
| ^^^^^^^^^ `Rem` redefined here
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: `Rem` must be defined only once in the type namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use std::ops::Rem as OtherRem;
|
2024-07-09 20:49:11 -05:00
|
|
|
| +++++++++++
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0255`.
|