@@ -73,32 +73,6 @@ help: consider further restricting this bound
73
73
LL | F: Callback<Self::CallbackArg> + MyFn<i32>,
74
74
| +++++++++++
75
75
76
- error[E0277]: the trait bound `F: Callback<i32>` is not satisfied
77
- --> $DIR/false-positive-predicate-entailment-error.rs:43:12
78
- |
79
- LL | F: Callback<Self::CallbackArg>,
80
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `MyFn<i32>` is not implemented for `F`, which is required by `F: Callback<i32>`
81
- |
82
- note: required for `F` to implement `Callback<i32>`
83
- --> $DIR/false-positive-predicate-entailment-error.rs:14:21
84
- |
85
- LL | impl<A, F: MyFn<A>> Callback<A> for F {
86
- | ------- ^^^^^^^^^^^ ^
87
- | |
88
- | unsatisfied trait bound introduced here
89
- note: the requirement `F: Callback<i32>` appears on the `impl`'s method `autobatch` but not on the corresponding trait's method
90
- --> $DIR/false-positive-predicate-entailment-error.rs:25:8
91
- |
92
- LL | trait ChannelSender {
93
- | ------------- in this trait
94
- ...
95
- LL | fn autobatch<F>(self) -> impl Trait
96
- | ^^^^^^^^^ this trait's method doesn't have the requirement `F: Callback<i32>`
97
- help: consider further restricting this bound
98
- |
99
- LL | F: Callback<Self::CallbackArg> + MyFn<i32>,
100
- | +++++++++++
101
-
102
76
error[E0277]: the trait bound `F: MyFn<i32>` is not satisfied
103
77
--> $DIR/false-positive-predicate-entailment-error.rs:36:30
104
78
|
@@ -168,6 +142,6 @@ help: consider further restricting this bound
168
142
LL | F: Callback<Self::CallbackArg> + MyFn<i32>,
169
143
| +++++++++++
170
144
171
- error: aborting due to 8 previous errors
145
+ error: aborting due to 7 previous errors
172
146
173
147
For more information about this error, try `rustc --explain E0277`.
0 commit comments