mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 12:12:19 +01:00
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;
|
|
};
|
|
}
|