-LL | match b {
- | _____-
- | |_____|
- | ||
-LL | || &mut false => {},
-LL | || _ if { (|| { let bar = b; *bar = false; })();
- | || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move out of `b` occurs here
-LL | || //~^ ERROR cannot move out of `b` because it is borrowed [E0505]
-... ||
-LL | || _ => panic!("surely we could never get here, since rustc warns it is unreachable."),
-LL | || }
- | || -
- | ||_____|
- | |______borrow of `b` occurs here
- | borrow later used here
+LL | match b {
+ | - borrow of `b` occurs here
+LL | &mut false => {},
+LL | _ if { (|| { let bar = b; *bar = false; })();
+ | ^^ - move occurs due to use in closure
+ | |
+ | move out of `b` occurs here
+...
+LL | &mut true => { println!("You might think we should get here"); },
+ | --------- borrow later used here