mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
aef0f4024a
And suggest adding the `#[coroutine]` to the closure
11 lines
478 B
Text
11 lines
478 B
Text
error: implementation of `Coroutine` is not general enough
|
|
--> $DIR/resume-arg-late-bound.rs:15:5
|
|
|
|
|
LL | test(gen);
|
|
| ^^^^^^^^^ implementation of `Coroutine` is not general enough
|
|
|
|
|
= note: `{coroutine@$DIR/resume-arg-late-bound.rs:11:28: 11:44}` must implement `Coroutine<&'1 mut bool>`, for any lifetime `'1`...
|
|
= note: ...but it actually implements `Coroutine<&'2 mut bool>`, for some specific lifetime `'2`
|
|
|
|
error: aborting due to 1 previous error
|
|
|