]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-cell-is-invariant.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / variance / variance-cell-is-invariant.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/variance-cell-is-invariant.rs:24:12
3    |
4 LL | fn use_<'short,'long>(c: Foo<'short>,
5    |         ------ ----- lifetime `'long` defined here
6    |         |
7    |         lifetime `'short` defined here
8 ...
9 LL |     let _: Foo<'long> = c; //~ ERROR E0623
10    |            ^^^^^^^^^^ type annotation requires that `'short` must outlive `'long`
11
12 error: aborting due to previous error
13