mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
aef0f4024a
And suggest adding the `#[coroutine]` to the closure
11 lines
201 B
Rust
11 lines
201 B
Rust
#![feature(coroutines, stmt_expr_attributes)]
|
|
|
|
fn main() {
|
|
let _coroutine = #[coroutine]
|
|
|| {
|
|
yield ((), ((), ()));
|
|
yield ((), ());
|
|
//~^ ERROR mismatched types
|
|
};
|
|
}
|