]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-ref-mut-let-invariance.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / match / match-ref-mut-let-invariance.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/match-ref-mut-let-invariance.rs:21:9
3    |
4 LL | impl<'b> S<'b> {
5    |      -- lifetime `'b` defined here
6 LL |     fn bar<'a>(&'a mut self) -> &'a mut &'a i32 {
7    |            -- lifetime `'a` defined here
8 LL |         let ref mut x = self.0;
9 LL |         x //~ ERROR mismatched types
10    |         ^ returning this value requires that `'a` must outlive `'b`
11
12 error: aborting due to previous error
13