summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unboxed-closures/unboxed-closure-region.stderr
blob: b40b2f67d9bade1707c36211f30dfa55bc39c9ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0597]: `x` does not live long enough
  --> $DIR/unboxed-closure-region.rs:8:12
   |
LL |     let _f = {
   |         -- borrow later stored here
LL |         let x = 0;
LL |         || x
   |         -- ^ borrowed value does not live long enough
   |         |
   |         value captured here
LL |     };
   |     - `x` dropped here while still borrowed

error: aborting due to previous error

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