@@ -10,9 +10,8 @@ LL | type Add = bool;
10
10
= note: `Add` must be defined only once in the type namespace of this module
11
11
help: you can use `as` to change the binding name of the import
12
12
|
13
- LL - use std::ops::Add;
14
- LL + use std::ops::Add as OtherAdd;
15
- |
13
+ LL | use std::ops::Add as OtherAdd;
14
+ | +++++++++++
16
15
17
16
error[E0255]: the name `Sub` is defined multiple times
18
17
--> $DIR/issue-24081.rs:9:1
@@ -26,9 +25,8 @@ LL | struct Sub { x: f32 }
26
25
= note: `Sub` must be defined only once in the type namespace of this module
27
26
help: you can use `as` to change the binding name of the import
28
27
|
29
- LL - use std::ops::Sub;
30
- LL + use std::ops::Sub as OtherSub;
31
- |
28
+ LL | use std::ops::Sub as OtherSub;
29
+ | +++++++++++
32
30
33
31
error[E0255]: the name `Mul` is defined multiple times
34
32
--> $DIR/issue-24081.rs:11:1
@@ -42,9 +40,8 @@ LL | enum Mul { A, B }
42
40
= note: `Mul` must be defined only once in the type namespace of this module
43
41
help: you can use `as` to change the binding name of the import
44
42
|
45
- LL - use std::ops::Mul;
46
- LL + use std::ops::Mul as OtherMul;
47
- |
43
+ LL | use std::ops::Mul as OtherMul;
44
+ | +++++++++++
48
45
49
46
error[E0255]: the name `Div` is defined multiple times
50
47
--> $DIR/issue-24081.rs:13:1
@@ -58,9 +55,8 @@ LL | mod Div { }
58
55
= note: `Div` must be defined only once in the type namespace of this module
59
56
help: you can use `as` to change the binding name of the import
60
57
|
61
- LL - use std::ops::Div;
62
- LL + use std::ops::Div as OtherDiv;
63
- |
58
+ LL | use std::ops::Div as OtherDiv;
59
+ | +++++++++++
64
60
65
61
error[E0255]: the name `Rem` is defined multiple times
66
62
--> $DIR/issue-24081.rs:15:1
@@ -74,9 +70,8 @@ LL | trait Rem { }
74
70
= note: `Rem` must be defined only once in the type namespace of this module
75
71
help: you can use `as` to change the binding name of the import
76
72
|
77
- LL - use std::ops::Rem;
78
- LL + use std::ops::Rem as OtherRem;
79
- |
73
+ LL | use std::ops::Rem as OtherRem;
74
+ | +++++++++++
80
75
81
76
error: aborting due to 5 previous errors
82
77
0 commit comments