]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hr-subtype/hr-subtype.free_inv_x_vs_free_inv_y.nll.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.free_inv_x_vs_free_inv_y.nll.stderr
CommitLineData
48663c56 1error: lifetime may not live long enough
f035d41b 2 --> $DIR/hr-subtype.rs:39:13
48663c56 3 |
f035d41b
XL
4LL | fn subtype<'x, 'y: 'x, 'z: 'y>() {
5 | -- -- lifetime `'y` defined here
48663c56
XL
6 | |
7 | lifetime `'x` defined here
8LL | gimme::<$t2>(None::<$t1>);
9 | ^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'x` must outlive `'y`
10...
11LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
f035d41b
XL
12LL | | fn(Inv<'y>)) }
13 | |______________- in this macro invocation
60c5eb7d
XL
14 |
15 = help: consider adding the following bound: `'x: 'y`
17df50a5 16 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
48663c56
XL
17
18error: lifetime may not live long enough
f035d41b 19 --> $DIR/hr-subtype.rs:45:13
48663c56 20 |
f035d41b
XL
21LL | fn supertype<'x, 'y: 'x, 'z: 'y>() {
22 | -- -- lifetime `'y` defined here
48663c56
XL
23 | |
24 | lifetime `'x` defined here
25LL | gimme::<$t1>(None::<$t2>);
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'x` must outlive `'y`
27...
28LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
f035d41b
XL
29LL | | fn(Inv<'y>)) }
30 | |______________- in this macro invocation
60c5eb7d
XL
31 |
32 = help: consider adding the following bound: `'x: 'y`
17df50a5 33 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
48663c56
XL
34
35error: aborting due to 2 previous errors
36