]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-11925.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue-11925.stderr
1 error[E0515]: cannot return reference to local data `x`
2   --> $DIR/issue-11925.rs:8:35
3    |
4 LL |         let f = to_fn_once(move|| &x);
5    |                                   ^^ returns a reference to data owned by the current function
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0515`.