]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-11925.stderr
Auto merge of #35856 - phimuemue:master, r=brson
[rust.git] / src / test / ui / span / issue-11925.stderr
1 error: `x` does not live long enough
2   --> $DIR/issue-11925.rs:18:36
3    |
4 18 |         let f = to_fn_once(move|| &x);
5    |                                    ^
6    |                                    |
7    |                                    does not live long enough
8    |                                    borrowed value only lives until here
9 ...
10 23 | }
11    | - borrowed value needs to live until here
12
13 error: aborting due to previous error
14