mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00: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;
|
|
};
|
|
}
|