// edition:2021 #![feature(coroutines)] fn main() { let x = &mut (); || { let _c = || yield *&mut *x; || _ = &mut *x; //~^ cannot borrow `*x` as mutable more than once at a time }; }