]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/user-annotations/issue-54124.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / user-annotations / issue-54124.stderr
CommitLineData
9fa01778 1error: lifetime may not live long enough
923072b8 2 --> $DIR/issue-54124.rs:2:22
0bf4aa26
XL
3 |
4LL | fn test<'a>() {
5 | -- lifetime `'a` defined here
532ac7d7 6LL | let _:fn(&()) = |_:&'a ()| {};
0bf4aa26
XL
7 | ^ - let's call the lifetime of this reference `'1`
8 | |
9 | requires that `'1` must outlive `'a`
10
9fa01778 11error: lifetime may not live long enough
923072b8 12 --> $DIR/issue-54124.rs:2:22
0bf4aa26
XL
13 |
14LL | fn test<'a>() {
15 | -- lifetime `'a` defined here
532ac7d7 16LL | let _:fn(&()) = |_:&'a ()| {};
0bf4aa26
XL
17 | ^ requires that `'a` must outlive `'static`
18
19error: aborting due to 2 previous errors
20