]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-using-impl-items.stderr
1 error[E0623]: lifetime mismatch
2 --> $DIR/ex3-both-anon-regions-using-impl-items.rs:6:16
3 |
4 LL | fn foo(x: &mut Vec<&u8>, y: &u8) {
5 | --- --- these two types are declared with different lifetimes...
6 LL | x.push(y);
7 | ^ ...but data from `y` flows into `x` here
8 |
9 = note: each elided lifetime in input position becomes a distinct lifetime
10 help: consider introducing a named lifetime parameter and update trait if needed
11 |
12 LL | fn foo<'a>(x: &mut Vec<&'a u8>, y: &'a u8) {
13 | ++++ ++ ++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0623`.