@@ -22,10 +22,6 @@ help: consider constraining the associated type `<impl Trait as Trait>::A` to `u
22
22
|
23
23
LL | fn foo<'a, T: Trait + 'a>(&self, _: impl Trait, x: impl Trait<A = usize>, _: T) {
24
24
| +++++++++++
25
- help: consider changing func's return type
26
- |
27
- LL | fn func(&self) -> usize;
28
- | ~~~~~
29
25
30
26
error[E0308]: mismatched types
31
27
--> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:17:13
@@ -51,10 +47,6 @@ help: consider constraining the associated type `<T as Trait>::A` to `usize`
51
47
|
52
48
LL | fn ban<T>(x: T) where T: Trait<A = usize> {
53
49
| +++++++++++
54
- help: consider changing func's return type
55
- |
56
- LL | fn func(&self) -> usize;
57
- | ~~~~~
58
50
59
51
error[E0308]: mismatched types
60
52
--> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:22:9
@@ -80,10 +72,6 @@ help: consider constraining the associated type `<impl Trait as Trait>::A` to `u
80
72
|
81
73
LL | fn foo<'a, T: Trait + 'a>(_: impl Trait, x: impl Trait<A = usize>, _: T) {
82
74
| +++++++++++
83
- help: consider changing func's return type
84
- |
85
- LL | fn func(&self) -> usize;
86
- | ~~~~~
87
75
88
76
error[E0308]: mismatched types
89
77
--> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:26:9
@@ -109,10 +97,6 @@ help: consider constraining the associated type `<T as Trait>::A` to `usize`
109
97
|
110
98
LL | fn bar<T: Trait<A = usize>>(x: T) {
111
99
| +++++++++++
112
- help: consider changing func's return type
113
- |
114
- LL | fn func(&self) -> usize;
115
- | ~~~~~
116
100
117
101
error[E0308]: mismatched types
118
102
--> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:30:9
@@ -138,10 +122,6 @@ help: consider constraining the associated type `<impl Trait<i32> as Trait<i32>>
138
122
|
139
123
LL | fn foo2(x: impl Trait<i32, A = usize>) {
140
124
| +++++++++++
141
- help: consider changing func's return type
142
- |
143
- LL | fn func(&self) -> usize;
144
- | ~~~~~
145
125
146
126
error[E0308]: mismatched types
147
127
--> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:34:9
@@ -167,10 +147,6 @@ help: consider constraining the associated type `<T as Trait<i32>>::A` to `usize
167
147
|
168
148
LL | fn bar2<T: Trait<i32, A = usize>>(x: T) {
169
149
| +++++++++++
170
- help: consider changing func's return type
171
- |
172
- LL | fn func(&self) -> usize;
173
- | ~~~~~
174
150
175
151
error[E0308]: mismatched types
176
152
--> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:38:9
@@ -196,10 +172,6 @@ help: consider constraining the associated type `<T as Trait>::A` to `usize`
196
172
|
197
173
LL | fn ban<T>(x: T) where T: Trait<A = usize> {
198
174
| +++++++++++
199
- help: consider changing func's return type
200
- |
201
- LL | fn func(&self) -> usize;
202
- | ~~~~~
203
175
204
176
error: aborting due to 7 previous errors
205
177
0 commit comments