rust/tests/ui/coroutine/too-many-parameters.stderr
Oli Scherer aef0f4024a Error on using yield without also using #[coroutine] on the closure
And suggest adding the `#[coroutine]` to the closure
2024-04-24 08:05:29 +00:00

10 lines
270 B
Plaintext

error[E0628]: too many parameters for a coroutine (expected 0 or 1 parameters)
--> $DIR/too-many-parameters.rs:5:5
|
LL | |(), ()| {
| ^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0628`.