summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/issue-11925.stderr
blob: 1d317fc331f73605b081c97ce0125fa042cb1614 (plain)
1
2
3
4
5
6
7
8
9
error[E0515]: cannot return reference to local data `x`
  --> $DIR/issue-11925.rs:8:35
   |
LL |         let f = to_fn_once(move|| &x);
   |                                   ^^ 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`.