1 error: `x` does not live long enough
2 --> $DIR/issue-11925.rs:18:36
4 18 | let f = to_fn_once(move|| &x);
7 | does not live long enough
8 | borrowed value only lives until here
11 | - borrowed value needs to live until here
13 error: aborting due to previous error