]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/issue-58053.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-58053.rs
CommitLineData
9fa01778
XL
1fn main() {
2 let i = &3;
3
4 let f = |x: &i32| -> &i32 { x };
5 //~^ ERROR lifetime may not live long enough
6 let j = f(i);
7
8 let g = |x: &i32| { x };
9 //~^ ERROR lifetime may not live long enough
10 let k = g(i);
11}