]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.nll.stderr
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex2c-push-inference-variable.nll.stderr
1 error: lifetime may not live long enough
2 --> $DIR/ex2c-push-inference-variable.rs:7: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 LL | let z = Ref { data: y.data };
9 LL | x.push(z);
10 | ^^^^^^^^^ argument requires that `'c` must outlive `'b`
11
12 error: aborting due to previous error
13