]> git.proxmox.com Git - rustc.git/blob - src/test/ui/match/match-ref-mut-invariance.nll.stderr
New upstream version 1.30.0+dfsg1
[rustc.git] / src / test / ui / match / match-ref-mut-invariance.nll.stderr
1 error: unsatisfied lifetime constraints
2 --> $DIR/match-ref-mut-invariance.rs:20: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 | match self.0 { ref mut x => x } //~ ERROR mismatched types
9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'b`
10
11 error: aborting due to previous error
12