1 error[E0495]: cannot infer an appropriate lifetime for borrow expression due to conflicting requirements
2 --> $DIR/regions-addr-of-upvar-self.rs:8:41
4 LL | let p: &'static mut usize = &mut self.food;
7 note: first, the lifetime cannot outlive the lifetime `'_` as defined on the body at 7:18...
8 --> $DIR/regions-addr-of-upvar-self.rs:7:18
12 note: ...so that closure can access `self`
13 --> $DIR/regions-addr-of-upvar-self.rs:8:41
15 LL | let p: &'static mut usize = &mut self.food;
17 = note: but, the lifetime must be valid for the static lifetime...
18 note: ...so that reference does not outlive borrowed content
19 --> $DIR/regions-addr-of-upvar-self.rs:8:41
21 LL | let p: &'static mut usize = &mut self.food;
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0495`.