2019-01-27 05:03:21 -06:00
|
|
|
error[E0310]: the parameter type `T` may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/regions-close-param-into-object.rs:6:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | Box::new(v)
|
2022-04-24 10:04:31 -05:00
|
|
|
| ^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-03-14 09:56:37 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | where T : X + 'static
|
|
|
|
| +++++++++
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
error[E0310]: the parameter type `T` may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/regions-close-param-into-object.rs:12:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | Box::new(v)
|
2022-04-24 10:04:31 -05:00
|
|
|
| ^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-03-14 09:56:37 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | fn p2<T: 'static>(v: Box<T>) -> Box<dyn X + 'static>
|
|
|
|
| +++++++++
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/regions-close-param-into-object.rs:18:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | Box::new(v)
|
2022-04-24 10:04:31 -05:00
|
|
|
| ^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-03-14 09:56:37 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | where T : X + 'a
|
|
|
|
| ++++
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/regions-close-param-into-object.rs:24:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | Box::new(v)
|
2022-04-24 10:04:31 -05:00
|
|
|
| ^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-03-14 09:56:37 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | fn p4<'a,T: 'a>(v: Box<T>) -> Box<dyn X + 'a>
|
|
|
|
| ++++
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0309, E0310.
|
|
|
|
For more information about an error, try `rustc --explain E0309`.
|