// except according to those terms.
// compile-flags: -Z identify_regions -Z span_free_formats -Z emit-end-regions
-// ignore-tidy-linelength
// Unwinding should EndRegion for in-scope borrows: Borrowing via by-ref closure.
// StorageLive(_3);
// StorageLive(_4);
// _4 = &'14s _1;
-// _3 = [closure@NodeId(18)] { d: _4 };
+// _3 = [closure@NodeId(18)] { d: move _4 };
// StorageDead(_4);
-// _2 = const foo(_3) -> [return: bb1, unwind: bb3];
+// _2 = const foo(move _3) -> [return: bb2, unwind: bb3];
// }
// bb1: {
+// resume;
+// }
+// bb2: {
// EndRegion('14s);
// StorageDead(_3);
// _0 = ();
-// drop(_1) -> bb4;
-// }
-// bb2: {
-// resume;
+// drop(_1) -> [return: bb4, unwind: bb1];
// }
// bb3: {
// EndRegion('14s);
-// drop(_1) -> bb2;
+// drop(_1) -> bb1;
// }
// bb4: {
// StorageDead(_1);
// }
// END rustc.main.SimplifyCfg-qualify-consts.after.mir
-// START rustc.main.{{closure}}.SimplifyCfg-qualify-consts.after.mir
+// START rustc.main-{{closure}}.SimplifyCfg-qualify-consts.after.mir
// fn main::{{closure}}(_1: [closure@NodeId(18) d:&'14s D]) -> i32 {
// let mut _0: i32;
// let mut _2: i32;
// bb0: {
// StorageLive(_2);
// _2 = ((*(_1.0: &'14s D)).0: i32);
-// _0 = _2;
+// _0 = move _2;
// StorageDead(_2);
// return;
// }
-// END rustc.main.{{closure}}.SimplifyCfg-qualify-consts.after.mir
+// END rustc.main-{{closure}}.SimplifyCfg-qualify-consts.after.mir