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