2024-04-11 13:15:34 +00:00
|
|
|
error[E0277]: the trait bound `{coroutine@$DIR/coroutine.rs:20:9: 20:11}: Coroutine<A>` is not satisfied
|
|
|
|
|
--> $DIR/coroutine.rs:20:9
|
2023-01-24 23:38:20 +00:00
|
|
|
|
|
2024-04-11 13:15:34 +00:00
|
|
|
LL | needs_coroutine(
|
|
|
|
|
| --------------- required by a bound introduced by this call
|
|
|
|
|
LL | #[coroutine]
|
|
|
|
|
LL | / || {
|
2023-01-24 23:38:20 +00:00
|
|
|
LL | |
|
2024-04-11 13:15:34 +00:00
|
|
|
LL | | yield ();
|
|
|
|
|
LL | | },
|
|
|
|
|
| |_________^ the trait `Coroutine<A>` is not implemented for `{coroutine@$DIR/coroutine.rs:20:9: 20:11}`
|
2023-01-24 23:38:20 +00:00
|
|
|
|
|
2023-10-19 21:46:28 +00:00
|
|
|
note: required by a bound in `needs_coroutine`
|
2023-10-20 10:06:08 +00:00
|
|
|
--> $DIR/coroutine.rs:14:28
|
2023-01-24 23:38:20 +00:00
|
|
|
|
|
2023-10-19 21:46:28 +00:00
|
|
|
LL | fn needs_coroutine(_: impl Coroutine<A, Yield = B, Return = C>) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `needs_coroutine`
|
2023-01-24 23:38:20 +00:00
|
|
|
|
2024-06-12 11:15:57 -04:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-24 23:38:20 +00:00
|
|
|
|
2024-06-12 11:15:57 -04:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|