1error[E0255]: the name `Add` is defined multiple times 2 --> $DIR/issue-24081.rs:7:1 3 | 4LL | use std::ops::Add; 5 | ------------- previous import of the trait `Add` here 6... 7LL | type Add = bool; 8 | ^^^^^^^^^^^^^^^^ `Add` redefined here 9 | 10 = note: `Add` must be defined only once in the type namespace of this module 11help: you can use `as` to change the binding name of the import 12 | 13LL | use std::ops::Add as OtherAdd; 14 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 15 16error[E0255]: the name `Sub` is defined multiple times 17 --> $DIR/issue-24081.rs:9:1 18 | 19LL | use std::ops::Sub; 20 | ------------- previous import of the trait `Sub` here 21... 22LL | struct Sub { x: f32 } 23 | ^^^^^^^^^^ `Sub` redefined here 24 | 25 = note: `Sub` must be defined only once in the type namespace of this module 26help: you can use `as` to change the binding name of the import 27 | 28LL | use std::ops::Sub as OtherSub; 29 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 30 31error[E0255]: the name `Mul` is defined multiple times 32 --> $DIR/issue-24081.rs:11:1 33 | 34LL | use std::ops::Mul; 35 | ------------- previous import of the trait `Mul` here 36... 37LL | enum Mul { A, B } 38 | ^^^^^^^^ `Mul` redefined here 39 | 40 = note: `Mul` must be defined only once in the type namespace of this module 41help: you can use `as` to change the binding name of the import 42 | 43LL | use std::ops::Mul as OtherMul; 44 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 45 46error[E0255]: the name `Div` is defined multiple times 47 --> $DIR/issue-24081.rs:13:1 48 | 49LL | use std::ops::Div; 50 | ------------- previous import of the trait `Div` here 51... 52LL | mod Div { } 53 | ^^^^^^^ `Div` redefined here 54 | 55 = note: `Div` must be defined only once in the type namespace of this module 56help: you can use `as` to change the binding name of the import 57 | 58LL | use std::ops::Div as OtherDiv; 59 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 60 61error[E0255]: the name `Rem` is defined multiple times 62 --> $DIR/issue-24081.rs:15:1 63 | 64LL | use std::ops::Rem; 65 | ------------- previous import of the trait `Rem` here 66... 67LL | trait Rem { } 68 | ^^^^^^^^^ `Rem` redefined here 69 | 70 = note: `Rem` must be defined only once in the type namespace of this module 71help: you can use `as` to change the binding name of the import 72 | 73LL | use std::ops::Rem as OtherRem; 74 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 75 76error: aborting due to 5 previous errors 77 78For more information about this error, try `rustc --explain E0255`. 79