fork/rust

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

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

1.40.0
422 B13 linesraw
1error: lifetime may not live long enough
2  --> $DIR/match-ref-mut-let-invariance.rs:11:9
3   |
4LL | impl<'b> S<'b> {
5   |      -- lifetime `'b` defined here
6LL |     fn bar<'a>(&'a mut self) -> &'a mut &'a i32 {
7   |            -- lifetime `'a` defined here
8LL |         let ref mut x = self.0;
9LL |         x
10   |         ^ returning this value requires that `'a` must outlive `'b`
11
12error: aborting due to previous error
13