1 note: External requirements
2 --> $DIR/ty-param-closure-outlives-from-return-type.rs:26:23
4 LL | with_signature(x, |y| y)
7 = note: defining type: DefId(0:11 ~ ty_param_closure_outlives_from_return_type[317d]::no_region[0]::{{closure}}[0]) with closure substs [
11 extern "rust-call" fn((std::boxed::Box<T>,)) -> std::boxed::Box<(dyn std::fmt::Debug + '_#2r)>,
13 = note: number of external vids: 3
14 = note: where T: '_#2r
16 note: No external requirements
17 --> $DIR/ty-param-closure-outlives-from-return-type.rs:15:1
19 LL | / fn no_region<'a, T>(x: Box<T>) -> Box<dyn Debug + 'a>
28 = note: defining type: DefId(0:8 ~ ty_param_closure_outlives_from_return_type[317d]::no_region[0]) with substs [
33 error[E0309]: the parameter type `T` may not live long enough
34 --> $DIR/ty-param-closure-outlives-from-return-type.rs:26:23
36 LL | with_signature(x, |y| y)
39 = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
41 error[E0309]: the parameter type `T` may not live long enough
42 --> $DIR/ty-param-closure-outlives-from-return-type.rs:41:5
47 = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
49 error: aborting due to 2 previous errors
51 For more information about this error, try `rustc --explain E0309`.