aef0f4024a
And suggest adding the `#[coroutine]` to the closure
13 lines
211 B
Rust
13 lines
211 B
Rust
//@ edition:2021
|
|
//@ check-pass
|
|
#![feature(coroutines, stmt_expr_attributes)]
|
|
|
|
fn main() {
|
|
let x = &mut ();
|
|
|| {
|
|
let _c = #[coroutine]
|
|
|| yield *&mut *x;
|
|
|| _ = &mut *x;
|
|
};
|
|
}
|