]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-escape-method.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / regions / regions-escape-method.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/regions-escape-method.rs:25:13
3    |
4 LL |     s.f(|p| p) //~ ERROR cannot infer
5    |          -- ^ returning this value requires that `'1` must outlive `'2`
6    |          ||
7    |          |return type of closure is &'2 i32
8    |          has type `&'1 i32`
9
10 error: aborting due to previous error
11