fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0524]: two closures require unique access to `x` at the same time 2 --> $DIR/borrowck-closures-mut-of-mut.rs:14:18 3 | 4LL | let mut c1 = || set(&mut *x); 5 | -- - first borrow occurs due to use of `x` in closure 6 | | 7 | first closure is constructed here 8LL | let mut c2 = || set(&mut *x); 9 | ^^ - second borrow occurs due to use of `x` in closure 10 | | 11 | second closure is constructed here 12LL | 13LL | c2(); c1(); 14 | -- first borrow later used here 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0524`.