]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-use-covariant-struct-1.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / variance / variance-use-covariant-struct-1.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/variance-use-covariant-struct-1.rs:20:5
3    |
4 LL | fn foo<'min,'max>(v: SomeStruct<&'min ()>)
5    |        ---- ---- lifetime `'max` defined here
6    |        |
7    |        lifetime `'min` defined here
8 ...
9 LL |     v //~ ERROR mismatched types
10    |     ^ returning this value requires that `'min` must outlive `'max`
11
12 error: aborting due to previous error
13