]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex2a-push-one-existing-name-2.nll.stderr
1 error[E0621]: explicit lifetime required in the type of `x`
2   --> $DIR/ex2a-push-one-existing-name-2.rs:16: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); //~ ERROR explicit lifetime
7    |     ^^^^^^^^^ lifetime `'a` required
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0621`.