2 // ignore-compare-mode-nll
3 //[nll] compile-flags: -Z borrowck=mir
10 pub fn chase_cat(&mut self) {
11 let p: &'static mut usize = &mut self.cats_chased;
12 //[base]~^ ERROR E0759
13 //[nll]~^^ ERROR lifetime may not live long enough
17 pub fn chase_cat_2(&mut self) {
18 let p: &mut usize = &mut self.cats_chased;
32 println!("cats_chased: {}", d.cats_chased);