@@ -21,6 +21,15 @@ LL | type Foo<Rhs> = dyn Add<Rhs> + Sub<Rhs> + X<Rhs> + Y<Rhs>;
21
21
| | | associated type `Output` must be specified
22
22
| | associated type `Output` must be specified
23
23
| associated type `Output` must be specified
24
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
25
+ |
26
+ = note: `Output` defined here
27
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
28
+ |
29
+ = note: `Output` defined here
30
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
31
+ |
32
+ = note: `Output` defined here
24
33
|
25
34
help: specify the associated types
26
35
|
@@ -52,6 +61,20 @@ LL | type Bar<Rhs> = dyn Add<Rhs> + Sub<Rhs> + X<Rhs> + Z<Rhs>;
52
61
| | | associated types `Output` (from trait `Div`), `Output` (from trait `Mul`) must be specified
53
62
| | associated type `Output` must be specified
54
63
| associated type `Output` must be specified
64
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
65
+ |
66
+ = note: `Output` defined here
67
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
68
+ |
69
+ = note: `Output` defined here
70
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
71
+ |
72
+ = note: `Mul::Output` defined here
73
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
74
+ |
75
+ = note: `Output` defined here
76
+ |
77
+ = note: `Div::Output` defined here
55
78
|
56
79
help: consider introducing a new type parameter, adding `where` constraints using the fully-qualified path to the associated types
57
80
--> $DIR/missing-associated-types.rs:15:43
@@ -85,6 +108,12 @@ LL | type Baz<Rhs> = dyn Add<Rhs> + Sub<Rhs> + Y<Rhs>;
85
108
| | |
86
109
| | associated type `Output` must be specified
87
110
| associated type `Output` must be specified
111
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
112
+ |
113
+ = note: `Output` defined here
114
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
115
+ |
116
+ = note: `Output` defined here
88
117
|
89
118
help: specify the associated types
90
119
|
@@ -109,6 +138,12 @@ LL | type Bat<Rhs> = dyn Add<Rhs> + Sub<Rhs> + Fine<Rhs>;
109
138
| ^^^^^^^^ ^^^^^^^^ associated type `Output` must be specified
110
139
| |
111
140
| associated type `Output` must be specified
141
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
142
+ |
143
+ = note: `Output` defined here
144
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
145
+ |
146
+ = note: `Output` defined here
112
147
|
113
148
help: specify the associated types
114
149
|
@@ -120,6 +155,12 @@ error[E0191]: the value of the associated types `Output` in `Div`, `Output` in `
120
155
|
121
156
LL | type Bal<Rhs> = dyn X<Rhs>;
122
157
| ^^^^^^ associated types `Output` (from trait `Div`), `Output` (from trait `Mul`) must be specified
158
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
159
+ |
160
+ = note: `Mul::Output` defined here
161
+ ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
162
+ |
163
+ = note: `Div::Output` defined here
123
164
|
124
165
= help: consider introducing a new type parameter, adding `where` constraints using the fully-qualified path to the associated types
125
166
0 commit comments