summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-24081.stderr
blob: e5ed6b10a5479757e38d1255ffc1e42b1aa09787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
error[E0255]: the name `Add` is defined multiple times
  --> $DIR/issue-24081.rs:7:1
   |
LL | use std::ops::Add;
   |     ------------- previous import of the trait `Add` here
...
LL | type Add = bool;
   | ^^^^^^^^^^^^^^^^ `Add` redefined here
   |
   = note: `Add` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use std::ops::Add as OtherAdd;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0255]: the name `Sub` is defined multiple times
  --> $DIR/issue-24081.rs:9:1
   |
LL | use std::ops::Sub;
   |     ------------- previous import of the trait `Sub` here
...
LL | struct Sub { x: f32 }
   | ^^^^^^^^^^ `Sub` redefined here
   |
   = note: `Sub` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use std::ops::Sub as OtherSub;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0255]: the name `Mul` is defined multiple times
  --> $DIR/issue-24081.rs:11:1
   |
LL | use std::ops::Mul;
   |     ------------- previous import of the trait `Mul` here
...
LL | enum Mul { A, B }
   | ^^^^^^^^ `Mul` redefined here
   |
   = note: `Mul` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use std::ops::Mul as OtherMul;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0255]: the name `Div` is defined multiple times
  --> $DIR/issue-24081.rs:13:1
   |
LL | use std::ops::Div;
   |     ------------- previous import of the trait `Div` here
...
LL | mod Div { }
   | ^^^^^^^ `Div` redefined here
   |
   = note: `Div` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use std::ops::Div as OtherDiv;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0255]: the name `Rem` is defined multiple times
  --> $DIR/issue-24081.rs:15:1
   |
LL | use std::ops::Rem;
   |     ------------- previous import of the trait `Rem` here
...
LL | trait Rem {  }
   | ^^^^^^^^^ `Rem` redefined here
   |
   = note: `Rem` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use std::ops::Rem as OtherRem;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0255`.