]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-escape-via-trait-or-not.stderr
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-escape-via-trait-or-not.stderr
1 error: lifetime may not live long enough
2   --> $DIR/regions-escape-via-trait-or-not.rs:18:14
3    |
4 LL |     with(|o| o)
5    |           -- ^ returning this value requires that `'1` must outlive `'2`
6    |           ||
7    |           |return type of closure is &'2 isize
8    |           has type `&'1 isize`
9
10 error: aborting due to previous error
11