blob: 7f14956e90b9024a2b375d4c495056a0192120bc [file] [log] [blame]
error[E0515]: cannot return reference to local data `x`
--> $DIR/issue-11925.rs:18:35
|
LL | let f = to_fn_once(move|| &x); //~ ERROR does not live long enough
| ^^ returns a reference to data owned by the current function
error: aborting due to previous error
For more information about this error, try `rustc --explain E0515`.