2018-08-27 23:46:08 -05:00
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:17:18
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
2020-07-24 15:59:43 -05:00
|
|
|
LL | Ref1Variant1(RequireOutlives<'a, T>),
|
2020-05-27 13:15:58 -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 | enum Ref1<'a, T: 'a> {
|
|
|
|
| ++++
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:22:25
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Ref2Variant2(isize, RequireOutlives<'a, T>),
|
2020-05-27 13:15:58 -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 | enum Ref2<'a, T: 'a> {
|
|
|
|
| ++++
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:35:23
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
2020-07-24 15:59:43 -05:00
|
|
|
LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>),
|
2020-05-27 13:15:58 -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 | enum RefDouble<'a, 'b, T: 'b> {
|
|
|
|
| ++++
|
2018-08-27 23:46:08 -05:00
|
|
|
|
2020-07-24 15:59:43 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0309`.
|