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: no_region::<'_#1r, T>::{closure#0} with closure substs [
9 extern "rust-call" fn((std::boxed::Box<T>,)) -> std::boxed::Box<(dyn std::fmt::Debug + '_#2r)>,
12 = note: number of external vids: 3
13 = note: where T: '_#2r
15 note: no external requirements
16 --> $DIR/ty-param-closure-outlives-from-return-type.rs:15:1
18 LL | / fn no_region<'a, T>(x: Box<T>) -> Box<dyn Debug + 'a>
23 = note: defining type: no_region::<'_#1r, T>
25 error[E0309]: the parameter type `T` may not live long enough
26 --> $DIR/ty-param-closure-outlives-from-return-type.rs:26:23
28 LL | with_signature(x, |y| y)
29 | ^^^^^ ...so that the type `T` will meet its required lifetime bounds
31 help: consider adding an explicit lifetime bound...
36 error[E0309]: the parameter type `T` may not live long enough
37 --> $DIR/ty-param-closure-outlives-from-return-type.rs:41:5
40 | ^ ...so that the type `T` will meet its required lifetime bounds
42 help: consider adding an explicit lifetime bound...
44 LL | T: 'b + Debug + 'a,
47 error: aborting due to 2 previous errors
49 For more information about this error, try `rustc --explain E0309`.