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::alloc::Global>,)) -> std::boxed::Box<(dyn std::fmt::Debug + '_#2r), std::alloc::Global>,
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>
27 = note: defining type: no_region::<'_#1r, T>
29 error[E0309]: the parameter type `T` may not live long enough
30 --> $DIR/ty-param-closure-outlives-from-return-type.rs:26:23
32 LL | with_signature(x, |y| y)
35 = help: consider adding an explicit lifetime bound `T: 'a`...
37 error[E0309]: the parameter type `T` may not live long enough
38 --> $DIR/ty-param-closure-outlives-from-return-type.rs:41:5
43 = help: consider adding an explicit lifetime bound `T: 'a`...
45 error: aborting due to 2 previous errors
47 For more information about this error, try `rustc --explain E0309`.