]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-variance-invariant-use-covariant.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / regions / regions-variance-invariant-use-covariant.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/regions-variance-invariant-use-covariant.rs:27:12
3    |
4 LL | fn use_<'b>(c: Invariant<'b>) {
5    |         -- lifetime `'b` defined here
6 ...
7 LL |     let _: Invariant<'static> = c; //~ ERROR mismatched types
8    |            ^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'static`
9
10 error: aborting due to previous error
11