1 error[E0309]: the parameter type `T` may not live long enough
2 --> $DIR/regions-enum-not-wf.rs:18:18
4 LL | enum Ref1<'a, T> {
5 | - help: consider adding an explicit lifetime bound `T: 'a`...
6 LL | Ref1Variant1(RequireOutlives<'a, T>)
7 | ^^^^^^^^^^^^^^^^^^^^^^
9 note: ...so that the type `T` will meet its required lifetime bounds
10 --> $DIR/regions-enum-not-wf.rs:18:18
12 LL | Ref1Variant1(RequireOutlives<'a, T>)
13 | ^^^^^^^^^^^^^^^^^^^^^^
15 error[E0309]: the parameter type `T` may not live long enough
16 --> $DIR/regions-enum-not-wf.rs:23:25
18 LL | enum Ref2<'a, T> {
19 | - help: consider adding an explicit lifetime bound `T: 'a`...
21 LL | Ref2Variant2(isize, RequireOutlives<'a, T>),
22 | ^^^^^^^^^^^^^^^^^^^^^^
24 note: ...so that the type `T` will meet its required lifetime bounds
25 --> $DIR/regions-enum-not-wf.rs:23:25
27 LL | Ref2Variant2(isize, RequireOutlives<'a, T>),
28 | ^^^^^^^^^^^^^^^^^^^^^^
30 error[E0309]: the parameter type `T` may not live long enough
31 --> $DIR/regions-enum-not-wf.rs:35:1
33 LL | enum RefDouble<'a, 'b, T> {
34 | ^ - help: consider adding an explicit lifetime bound `T: 'b`...
37 LL | | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
42 note: ...so that the type `T` will meet its required lifetime bounds
43 --> $DIR/regions-enum-not-wf.rs:35:1
45 LL | / enum RefDouble<'a, 'b, T> {
46 LL | | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
51 error[E0309]: the parameter type `T` may not live long enough
52 --> $DIR/regions-enum-not-wf.rs:36:23
54 LL | enum RefDouble<'a, 'b, T> {
55 | - help: consider adding an explicit lifetime bound `T: 'b`...
56 LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
59 note: ...so that the type `T` will meet its required lifetime bounds
60 --> $DIR/regions-enum-not-wf.rs:36:23
62 LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>)
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
65 error: aborting due to 4 previous errors
67 For more information about this error, try `rustc --explain E0309`.