1 error[E0596]: cannot borrow immutable item `*r` as mutable
2 --> $DIR/issue-27282-reborrow-ref-mut-in-guard.rs:26:24
4 LL | ref mut r if { (|| { let bar = &mut *r; **bar = false; })();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0596`.