]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-addr-of-self.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / regions / regions-addr-of-self.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/regions-addr-of-self.rs:17:16
3    |
4 LL |     pub fn chase_cat(&mut self) {
5    |                      - let's call the lifetime of this reference `'1`
6 LL |         let p: &'static mut usize = &mut self.cats_chased; //~ ERROR cannot infer
7    |                ^^^^^^^^^^^^^^^^^^ type annotation requires that `'1` must outlive `'static`
8
9 error: aborting due to previous error
10