]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-infer-call-3.nll.stderr
Remove dead ScopeTree code
[rust.git] / src / test / ui / regions / regions-infer-call-3.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/regions-infer-call-3.rs:8:24
3    |
4 LL |     let z = with(|y| { select(x, y) });
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