rust/tests/ui/generator/issue-110929-generator-conflict-error-ice.rs
Camille GILLOT 211d2ed07b Bless tests.
2023-09-23 13:47:30 +00:00

12 lines
220 B
Rust

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