fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
921 B22 linesraw
1error: lifetime may not live long enough
2  --> $DIR/ex3-both-anon-regions-3.rs:2:5
3   |
4LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
5   |                     -                   - let's call the lifetime of this reference `'1`
6   |                     |
7   |                     let's call the lifetime of this reference `'2`
8LL |     z.push((x,y));
9   |     ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
10
11error: lifetime may not live long enough
12  --> $DIR/ex3-both-anon-regions-3.rs:2:5
13   |
14LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
15   |                         -                    - let's call the lifetime of this reference `'3`
16   |                         |
17   |                         let's call the lifetime of this reference `'4`
18LL |     z.push((x,y));
19   |     ^^^^^^^^^^^^^ argument requires that `'3` must outlive `'4`
20
21error: aborting due to 2 previous errors
22