]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error: lifetime may not live long enough |
2 | --> $DIR/ex3-both-anon-regions-latebound-regions.rs:2:5 | |
ea8adc8c | 3 | | |
0531ce1d | 4 | LL | 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 | 8 | LL | 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 | |
13 | error: aborting due to previous error | |
14 |