1 error[E0255]: the name `Add` is defined multiple times
2 --> $DIR/issue-24081.rs:17:1
4 LL | use std::ops::Add;
5 | ------------- previous import of the trait `Add` here
7 LL | type Add = bool; //~ ERROR the name `Add` is defined multiple times
8 | ^^^^^^^^^^^^^^^^ `Add` redefined here
10 = note: `Add` 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
13 LL | use std::ops::Add as OtherAdd;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
16 error[E0255]: the name `Sub` is defined multiple times
17 --> $DIR/issue-24081.rs:19:1
19 LL | use std::ops::Sub;
20 | ------------- previous import of the trait `Sub` here
22 LL | struct Sub { x: f32 } //~ ERROR the name `Sub` is defined multiple times
23 | ^^^^^^^^^^ `Sub` redefined here
25 = note: `Sub` 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
28 LL | use std::ops::Sub as OtherSub;
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^
31 error[E0255]: the name `Mul` is defined multiple times
32 --> $DIR/issue-24081.rs:21:1
34 LL | use std::ops::Mul;
35 | ------------- previous import of the trait `Mul` here
37 LL | enum Mul { A, B } //~ ERROR the name `Mul` is defined multiple times
38 | ^^^^^^^^ `Mul` redefined here
40 = note: `Mul` 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
43 LL | use std::ops::Mul as OtherMul;
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^
46 error[E0255]: the name `Div` is defined multiple times
47 --> $DIR/issue-24081.rs:23:1
49 LL | use std::ops::Div;
50 | ------------- previous import of the trait `Div` here
52 LL | mod Div { } //~ ERROR the name `Div` is defined multiple times
53 | ^^^^^^^ `Div` redefined here
55 = note: `Div` 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
58 LL | use std::ops::Div as OtherDiv;
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^
61 error[E0255]: the name `Rem` is defined multiple times
62 --> $DIR/issue-24081.rs:25:1
64 LL | use std::ops::Rem;
65 | ------------- previous import of the trait `Rem` here
67 LL | trait Rem { } //~ ERROR the name `Rem` is defined multiple times
68 | ^^^^^^^^^ `Rem` redefined here
70 = note: `Rem` 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
73 LL | use std::ops::Rem as OtherRem;
74 | ^^^^^^^^^^^^^^^^^^^^^^^^^
76 error: aborting due to 5 previous errors
78 For more information about this error, try `rustc --explain E0255`.