]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hr-subtype/hr-subtype.free_x_vs_free_y.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.free_x_vs_free_y.stderr
1 error: lifetime may not live long enough
2 --> $DIR/hr-subtype.rs:54:13
3 |
4 LL | fn supertype<'x, 'y: 'x, 'z: 'y>() {
5 | -- -- lifetime `'y` defined here
6 | |
7 | lifetime `'x` defined here
8 LL | gimme::<$t1>(None::<$t2>);
9 | ^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'x` must outlive `'y`
10 ...
11 LL | / check! { free_x_vs_free_y: (fn(&'x u32),
12 LL | | fn(&'y u32)) }
13 | |______________- in this macro invocation
14 |
15 = help: consider adding the following bound: `'x: 'y`
16 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error: aborting due to previous error
19