]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-addr-of-self.base.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-addr-of-self.base.stderr
CommitLineData
3dfed10e 1error[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
4LL | pub fn chase_cat(&mut self) {
5 | --------- this data with an anonymous lifetime `'_`...
532ac7d7 6LL | 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
9error: aborting due to previous error
10
3dfed10e 11For more information about this error, try `rustc --explain E0759`.