fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0309]: the parameter type `T` may not live long enough 2 --> $DIR/regions-enum-not-wf.rs:17:18 3 | 4LL | Ref1Variant1(RequireOutlives<'a, T>), 5 | ^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds 6 | 7help: consider adding an explicit lifetime bound... 8 | 9LL | enum Ref1<'a, T: 'a> { 10 | ++++ 11 12error[E0309]: the parameter type `T` may not live long enough 13 --> $DIR/regions-enum-not-wf.rs:22:25 14 | 15LL | Ref2Variant2(isize, RequireOutlives<'a, T>), 16 | ^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds 17 | 18help: consider adding an explicit lifetime bound... 19 | 20LL | enum Ref2<'a, T: 'a> { 21 | ++++ 22 23error[E0309]: the parameter type `T` may not live long enough 24 --> $DIR/regions-enum-not-wf.rs:35:23 25 | 26LL | RefDoubleVariant1(&'a RequireOutlives<'b, T>), 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds 28 | 29help: consider adding an explicit lifetime bound... 30 | 31LL | enum RefDouble<'a, 'b, T: 'b> { 32 | ++++ 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0309`.