1 note: no external requirements
2 --> $DIR/return-wrong-bound-region.rs:11:16
4 LL | expect_sig(|a, b| b); // ought to return `a`
7 = note: defining type: test::{closure#0} with closure substs [
9 for<'r, 's> extern "rust-call" fn((&ReLateBound(DebruijnIndex(0), BrNamed('r)) i32, &ReLateBound(DebruijnIndex(0), BrNamed('s)) i32)) -> &ReLateBound(DebruijnIndex(0), BrNamed('r)) i32,
13 error: lifetime may not live long enough
14 --> $DIR/return-wrong-bound-region.rs:11:23
16 LL | expect_sig(|a, b| b); // ought to return `a`
17 | - - ^ closure was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
19 | | has type `&'1 i32`
22 note: no external requirements
23 --> $DIR/return-wrong-bound-region.rs:10:1
26 LL | | expect_sig(|a, b| b); // ought to return `a`
31 = note: defining type: test
33 error: aborting due to previous error