]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/mir_check_cast_closure.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / nll / mir_check_cast_closure.stderr
1 error: unsatisfied lifetime constraints
2 --> $DIR/mir_check_cast_closure.rs:17:5
3 |
4 LL | fn bar<'a, 'b>() -> fn(&'a u32, &'b u32) -> &'a u32 {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8 LL | let g: fn(_, _) -> _ = |_x, y| y;
9 LL | g
10 | ^ returning this value requires that `'b` must outlive `'a`
11
12 error: aborting due to previous error
13