@@ -10,9 +10,8 @@ LL | type Add = bool;
1010 = note: `Add` must be defined only once in the type namespace of this module
1111help: you can use `as` to change the binding name of the import
1212 |
13- LL - use std::ops::Add;
14- LL + use std::ops::Add as OtherAdd;
15- |
13+ LL | use std::ops::Add as OtherAdd;
14+ | +++++++++++
1615
1716error[E0255]: the name `Sub` is defined multiple times
1817 --> $DIR/issue-24081.rs:9:1
@@ -26,9 +25,8 @@ LL | struct Sub { x: f32 }
2625 = note: `Sub` must be defined only once in the type namespace of this module
2726help: you can use `as` to change the binding name of the import
2827 |
29- LL - use std::ops::Sub;
30- LL + use std::ops::Sub as OtherSub;
31- |
28+ LL | use std::ops::Sub as OtherSub;
29+ | +++++++++++
3230
3331error[E0255]: the name `Mul` is defined multiple times
3432 --> $DIR/issue-24081.rs:11:1
@@ -42,9 +40,8 @@ LL | enum Mul { A, B }
4240 = note: `Mul` must be defined only once in the type namespace of this module
4341help: you can use `as` to change the binding name of the import
4442 |
45- LL - use std::ops::Mul;
46- LL + use std::ops::Mul as OtherMul;
47- |
43+ LL | use std::ops::Mul as OtherMul;
44+ | +++++++++++
4845
4946error[E0255]: the name `Div` is defined multiple times
5047 --> $DIR/issue-24081.rs:13:1
@@ -58,9 +55,8 @@ LL | mod Div { }
5855 = note: `Div` must be defined only once in the type namespace of this module
5956help: you can use `as` to change the binding name of the import
6057 |
61- LL - use std::ops::Div;
62- LL + use std::ops::Div as OtherDiv;
63- |
58+ LL | use std::ops::Div as OtherDiv;
59+ | +++++++++++
6460
6561error[E0255]: the name `Rem` is defined multiple times
6662 --> $DIR/issue-24081.rs:15:1
@@ -74,9 +70,8 @@ LL | trait Rem { }
7470 = note: `Rem` must be defined only once in the type namespace of this module
7571help: you can use `as` to change the binding name of the import
7672 |
77- LL - use std::ops::Rem;
78- LL + use std::ops::Rem as OtherRem;
79- |
73+ LL | use std::ops::Rem as OtherRem;
74+ | +++++++++++
8075
8176error: aborting due to 5 previous errors
8277
0 commit comments