aef0f4024a
And suggest adding the `#[coroutine]` to the closure
10 lines
149 B
Rust
10 lines
149 B
Rust
#![feature(coroutines)]
|
|
|
|
fn main() {
|
|
#[coroutine]
|
|
|(), ()| {
|
|
//~^ error: too many parameters for a coroutine
|
|
yield;
|
|
};
|
|
}
|