summary refs log tree commit diff
path: root/src/test/ui/span/issue-11925.stderr
blob: 46e2a41b3c34db34b4c41849666c11db8a1387a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0597]: `x` does not live long enough
  --> $DIR/issue-11925.rs:8:36
   |
LL |         let f = to_fn_once(move|| &x); //~ ERROR does not live long enough
   |                                    ^
   |                                    |
   |                                    borrowed value does not live long enough
   |                                    `x` dropped here while still borrowed
...
LL | }
   | - borrowed value needs to live until here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0597`.