]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex2e-push-inference-variable-3.nll.stderr
1 error: lifetime may not live long enough
2 --> $DIR/ex2e-push-inference-variable-3.rs:8: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 | Vec::push(a, b);
10 | ^^^^^^^^^^^^^^^ argument requires that `'c` must outlive `'b`
11 |
12 = help: consider adding the following bound: `'c: 'b`
13
14 error: aborting due to previous error
15