]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hr-subtype/hr-subtype.free_x_vs_free_y.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / hr-subtype / hr-subtype.free_x_vs_free_y.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/hr-subtype.rs:49: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 error: aborting due to previous error
16