]>
Commit | Line | Data |
---|---|---|
3dfed10e | 1 | error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement |
04454e1e | 2 | --> $DIR/regions-addr-of-self.rs:11:37 |
b7449926 | 3 | | |
3dfed10e XL |
4 | LL | pub fn chase_cat(&mut self) { |
5 | | --------- this data with an anonymous lifetime `'_`... | |
532ac7d7 | 6 | LL | let p: &'static mut usize = &mut self.cats_chased; |
a2a8927a | 7 | | ^^^^^^^^^^^^^^^^^^^^^ ...is used and required to live as long as `'static` here |
b7449926 XL |
8 | |
9 | error: aborting due to previous error | |
10 | ||
3dfed10e | 11 | For more information about this error, try `rustc --explain E0759`. |