]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex2a-push-one-existing-name-2.stderr
1 error[E0621]: explicit lifetime required in the type of `x`
2 --> $DIR/ex2a-push-one-existing-name-2.rs:6:5
3 |
4 LL | fn foo<'a>(x: Ref<i32>, y: &mut Vec<Ref<'a, i32>>) {
5 | -------- help: add explicit lifetime `'a` to the type of `x`: `Ref<'a, i32>`
6 LL | y.push(x);
7 | ^^^^^^^^^ lifetime `'a` required
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0621`.