]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0309]: the parameter type `T` may not live long enough |
cdc7bbd5 | 2 | --> $DIR/regions-enum-not-wf.rs:17:18 |
b7449926 XL |
3 | | |
4 | LL | enum Ref1<'a, T> { | |
74b04a01 | 5 | | - help: consider adding an explicit lifetime bound...: `T: 'a` |
29967ef6 | 6 | LL | Ref1Variant1(RequireOutlives<'a, T>), |
f9f354fc | 7 | | ^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds |
b7449926 XL |
8 | |
9 | error[E0309]: the parameter type `T` may not live long enough | |
cdc7bbd5 | 10 | --> $DIR/regions-enum-not-wf.rs:22:25 |
b7449926 XL |
11 | | |
12 | LL | enum Ref2<'a, T> { | |
74b04a01 | 13 | | - help: consider adding an explicit lifetime bound...: `T: 'a` |
b7449926 | 14 | LL | Ref2Variant1, |
532ac7d7 | 15 | LL | Ref2Variant2(isize, RequireOutlives<'a, T>), |
f9f354fc | 16 | | ^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds |
b7449926 XL |
17 | |
18 | error[E0309]: the parameter type `T` may not live long enough | |
cdc7bbd5 | 19 | --> $DIR/regions-enum-not-wf.rs:35:23 |
b7449926 | 20 | | |
532ac7d7 | 21 | LL | enum RefDouble<'a, 'b, T> { |
74b04a01 | 22 | | - help: consider adding an explicit lifetime bound...: `T: 'b` |
29967ef6 | 23 | LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>), |
f9f354fc | 24 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds |
b7449926 | 25 | |
29967ef6 | 26 | error: aborting due to 3 previous errors |
b7449926 | 27 | |
0bf4aa26 | 28 | For more information about this error, try `rustc --explain E0309`. |