]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-both-are-structs-2.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/ex3-both-anon-regions-both-are-structs-2.rs:16:5
3    |
4 LL | fn foo(mut x: Ref, y: Ref) {
5    |        -----       - has type `Ref<'_, '1>`
6    |        |
7    |        has type `Ref<'_, '2>`
8 LL |     x.b = y.b; //~ ERROR lifetime mismatch
9    |     ^^^^^^^^^ assignment requires that `'1` must outlive `'2`
10
11 error: aborting due to previous error
12