]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error[E0309]: the parameter type `T` may not live long enough |
0731742a | 2 | --> $DIR/regions-enum-not-wf.rs:18:18 |
0bf4aa26 XL |
3 | | |
4 | LL | enum Ref1<'a, T> { | |
5 | | - help: consider adding an explicit lifetime bound `T: 'a`... | |
532ac7d7 | 6 | LL | Ref1Variant1(RequireOutlives<'a, T>) |
0bf4aa26 XL |
7 | | ^^^^^^^^^^^^^^^^^^^^^^ |
8 | | | |
9 | note: ...so that the type `T` will meet its required lifetime bounds | |
0731742a | 10 | --> $DIR/regions-enum-not-wf.rs:18:18 |
0bf4aa26 | 11 | | |
532ac7d7 | 12 | LL | Ref1Variant1(RequireOutlives<'a, T>) |
0bf4aa26 XL |
13 | | ^^^^^^^^^^^^^^^^^^^^^^ |
14 | ||
15 | error[E0309]: the parameter type `T` may not live long enough | |
0731742a | 16 | --> $DIR/regions-enum-not-wf.rs:23:25 |
0bf4aa26 XL |
17 | | |
18 | LL | enum Ref2<'a, T> { | |
19 | | - help: consider adding an explicit lifetime bound `T: 'a`... | |
20 | LL | Ref2Variant1, | |
532ac7d7 | 21 | LL | Ref2Variant2(isize, RequireOutlives<'a, T>), |
0bf4aa26 XL |
22 | | ^^^^^^^^^^^^^^^^^^^^^^ |
23 | | | |
24 | note: ...so that the type `T` will meet its required lifetime bounds | |
0731742a | 25 | --> $DIR/regions-enum-not-wf.rs:23:25 |
0bf4aa26 | 26 | | |
532ac7d7 | 27 | LL | Ref2Variant2(isize, RequireOutlives<'a, T>), |
0bf4aa26 XL |
28 | | ^^^^^^^^^^^^^^^^^^^^^^ |
29 | ||
30 | error[E0309]: the parameter type `T` may not live long enough | |
0731742a | 31 | --> $DIR/regions-enum-not-wf.rs:35:1 |
0bf4aa26 | 32 | | |
532ac7d7 | 33 | LL | enum RefDouble<'a, 'b, T> { |
0bf4aa26 XL |
34 | | ^ - help: consider adding an explicit lifetime bound `T: 'b`... |
35 | | _| | |
36 | | | | |
37 | LL | | RefDoubleVariant1(&'a RequireOutlives<'b, T>) | |
532ac7d7 | 38 | LL | | |
0bf4aa26 XL |
39 | LL | | } |
40 | | |_^ | |
41 | | | |
42 | note: ...so that the type `T` will meet its required lifetime bounds | |
0731742a | 43 | --> $DIR/regions-enum-not-wf.rs:35:1 |
0bf4aa26 | 44 | | |
532ac7d7 | 45 | LL | / enum RefDouble<'a, 'b, T> { |
0bf4aa26 | 46 | LL | | RefDoubleVariant1(&'a RequireOutlives<'b, T>) |
532ac7d7 | 47 | LL | | |
0bf4aa26 XL |
48 | LL | | } |
49 | | |_^ | |
50 | ||
51 | error[E0309]: the parameter type `T` may not live long enough | |
0731742a | 52 | --> $DIR/regions-enum-not-wf.rs:36:23 |
0bf4aa26 | 53 | | |
532ac7d7 | 54 | LL | enum RefDouble<'a, 'b, T> { |
0bf4aa26 XL |
55 | | - help: consider adding an explicit lifetime bound `T: 'b`... |
56 | LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>) | |
57 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
58 | | | |
59 | note: ...so that the type `T` will meet its required lifetime bounds | |
0731742a | 60 | --> $DIR/regions-enum-not-wf.rs:36:23 |
0bf4aa26 XL |
61 | | |
62 | LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>) | |
63 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
64 | ||
65 | error: aborting due to 4 previous errors | |
66 | ||
67 | For more information about this error, try `rustc --explain E0309`. |