]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex2d-push-inference-variable-2.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/ex2d-push-inference-variable-2.rs:18:5
3    |
4 LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
5    |            --  -- lifetime `'c` defined here
6    |            |
7    |            lifetime `'b` defined here
8 ...
9 LL |     a.push(b);
10    |     ^^^^^^^^^ argument requires that `'c` must outlive `'b`
11
12 error: aborting due to previous error
13