]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-ref-mut-let-invariance.stderr
Rollup merge of #93443 - spastorino:add-stable-hash-impl-doc, r=cjgillot
[rust.git] / src / test / ui / match / match-ref-mut-let-invariance.stderr
1 error[E0308]: mismatched types
2   --> $DIR/match-ref-mut-let-invariance.rs:11:9
3    |
4 LL |         x
5    |         ^ lifetime mismatch
6    |
7    = note: expected mutable reference `&'a mut &'a i32`
8               found mutable reference `&'a mut &'b i32`
9 note: the lifetime `'a` as defined here...
10   --> $DIR/match-ref-mut-let-invariance.rs:9:12
11    |
12 LL |     fn bar<'a>(&'a mut self) -> &'a mut &'a i32 {
13    |            ^^
14 note: ...does not necessarily outlive the lifetime `'b` as defined here
15   --> $DIR/match-ref-mut-let-invariance.rs:8:6
16    |
17 LL | impl<'b> S<'b> {
18    |      ^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.