1 error[E0495]: cannot infer an appropriate lifetime for borrow expression due to conflicting requirements
2 --> $DIR/regions-addr-of-self.rs:17:37
4 LL | let p: &'static mut usize = &mut self.cats_chased; //~ ERROR cannot infer
5 | ^^^^^^^^^^^^^^^^^^^^^
7 note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 16:5...
8 --> $DIR/regions-addr-of-self.rs:16:5
10 LL | / pub fn chase_cat(&mut self) {
11 LL | | let p: &'static mut usize = &mut self.cats_chased; //~ ERROR cannot infer
15 note: ...so that reference does not outlive borrowed content
16 --> $DIR/regions-addr-of-self.rs:17:37
18 LL | let p: &'static mut usize = &mut self.cats_chased; //~ ERROR cannot infer
19 | ^^^^^^^^^^^^^^^^^^^^^
20 = note: but, the lifetime must be valid for the static lifetime...
21 note: ...so that reference does not outlive borrowed content
22 --> $DIR/regions-addr-of-self.rs:17:37
24 LL | let p: &'static mut usize = &mut self.cats_chased; //~ ERROR cannot infer
25 | ^^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to previous error
29 For more information about this error, try `rustc --explain E0495`.