]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-latebound-regions.stderr
1 error: lifetime may not live long enough
2   --> $DIR/ex3-both-anon-regions-latebound-regions.rs:2:5
3    |
4 LL | fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
5    |        -- -- lifetime `'b` defined here
6    |        |
7    |        lifetime `'a` defined here
8 LL |     x.push(y);
9    |     ^^^^^^^^^ argument requires that `'b` must outlive `'a`
10    |
11    = help: consider adding the following bound: `'b: 'a`
12
13 error: aborting due to previous error
14