2017-12-10 13:47:55 -06:00
|
|
|
error[E0255]: the name `Add` is defined multiple times
|
|
|
|
--> $DIR/issue-24081.rs:17:1
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
11 | use std::ops::Add;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Add` here
|
|
|
|
...
|
|
|
|
17 | type Add = bool; //~ ERROR the name `Add` is defined multiple times
|
|
|
|
| ^^^^^^^^^^^^^^^^ `Add` redefined here
|
|
|
|
|
|
|
|
|
= note: `Add` 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
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
11 | use std::ops::Add as OtherAdd;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0255]: the name `Sub` is defined multiple times
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-24081.rs:19:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
12 | use std::ops::Sub;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Sub` here
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
19 | struct Sub { x: f32 } //~ ERROR the name `Sub` is defined multiple times
|
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
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
12 | use std::ops::Sub as OtherSub;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0255]: the name `Mul` is defined multiple times
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-24081.rs:21:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
13 | use std::ops::Mul;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Mul` here
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
21 | enum Mul { A, B } //~ ERROR the name `Mul` is defined multiple times
|
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
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
13 | use std::ops::Mul as OtherMul;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0255]: the name `Div` is defined multiple times
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-24081.rs:23:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
14 | use std::ops::Div;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Div` here
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
23 | mod Div { } //~ ERROR the name `Div` is defined multiple times
|
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
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
14 | use std::ops::Div as OtherDiv;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0255]: the name `Rem` is defined multiple times
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-24081.rs:25:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
15 | use std::ops::Rem;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- previous import of the trait `Rem` here
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | trait Rem { } //~ ERROR the name `Rem` is defined multiple times
|
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
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
15 | use std::ops::Rem as OtherRem;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0255"
|