1 error[E0308]: mismatched types
2 --> $DIR/match-ref-mut-invariance.rs:20:37
4 LL | match self.0 { ref mut x => x } //~ ERROR mismatched types
7 = note: expected type `&'a mut &'a i32`
8 found type `&'a mut &'b i32`
9 note: the lifetime 'a as defined on the method body at 19:12...
10 --> $DIR/match-ref-mut-invariance.rs:19:12
12 LL | fn bar<'a>(&'a mut self) -> &'a mut &'a i32 {
14 note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 18:6
15 --> $DIR/match-ref-mut-invariance.rs:18:6
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0308`.