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