2018-08-27 23:46:08 -05:00
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:18:18
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
|
LL | enum Ref1<'a, T> {
|
|
|
|
| - help: consider adding an explicit lifetime bound `T: 'a`...
|
|
|
|
LL | Ref1Variant1(RequireOutlives<'a, T>) //~ ERROR the parameter type `T` may not live long enough
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: ...so that the type `T` will meet its required lifetime bounds
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:18:18
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
|
LL | Ref1Variant1(RequireOutlives<'a, T>) //~ ERROR the parameter type `T` may not live long enough
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:23:25
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
|
LL | enum Ref2<'a, T> {
|
|
|
|
| - help: consider adding an explicit lifetime bound `T: 'a`...
|
|
|
|
LL | Ref2Variant1,
|
|
|
|
LL | Ref2Variant2(isize, RequireOutlives<'a, T>), //~ ERROR the parameter type `T` may not live long enough
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: ...so that the type `T` will meet its required lifetime bounds
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:23:25
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
|
LL | Ref2Variant2(isize, RequireOutlives<'a, T>), //~ ERROR the parameter type `T` may not live long enough
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:35:1
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
2018-12-25 09:56:47 -06:00
|
|
|
LL | enum RefDouble<'a, 'b, T> { //~ ERROR the parameter type `T` may not live long enough [E0309]
|
2018-08-27 23:46:08 -05:00
|
|
|
| ^ - help: consider adding an explicit lifetime bound `T: 'b`...
|
|
|
|
| _|
|
|
|
|
| |
|
|
|
|
LL | | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
|
2018-12-25 09:56:47 -06:00
|
|
|
LL | | //~^ the parameter type `T` may not live long enough [E0309]
|
2018-08-27 23:46:08 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
note: ...so that the type `T` will meet its required lifetime bounds
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:35:1
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
2018-12-25 09:56:47 -06:00
|
|
|
LL | / enum RefDouble<'a, 'b, T> { //~ ERROR the parameter type `T` may not live long enough [E0309]
|
2018-08-27 23:46:08 -05:00
|
|
|
LL | | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
|
2018-12-25 09:56:47 -06:00
|
|
|
LL | | //~^ the parameter type `T` may not live long enough [E0309]
|
2018-08-27 23:46:08 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:36:23
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
2018-12-25 09:56:47 -06:00
|
|
|
LL | enum RefDouble<'a, 'b, T> { //~ ERROR the parameter type `T` may not live long enough [E0309]
|
2018-08-27 23:46:08 -05:00
|
|
|
| - help: consider adding an explicit lifetime bound `T: 'b`...
|
|
|
|
LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: ...so that the type `T` will meet its required lifetime bounds
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-enum-not-wf.rs:36:23
|
2018-08-27 23:46:08 -05:00
|
|
|
|
|
|
|
|
LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0309`.
|