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