]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-latebound-regions.stderr
CommitLineData
923072b8
FG
1error: lifetime may not live long enough
2 --> $DIR/ex3-both-anon-regions-latebound-regions.rs:2:5
ea8adc8c 3 |
0531ce1d 4LL | fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
923072b8
FG
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
532ac7d7 8LL | x.push(y);
923072b8
FG
9 | ^^^^^^^^^ argument requires that `'b` must outlive `'a`
10 |
11 = help: consider adding the following bound: `'b: 'a`
ea8adc8c
XL
12
13error: aborting due to previous error
14