diff options
| author | David Wood <david@davidtw.co> | 2018-08-07 17:06:21 +0200 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-08-14 17:36:03 +0200 |
| commit | 2c6b0e5cf7d07cee4b26732c162b5835ab5aa53b (patch) | |
| tree | 398b13a565cbb757179d8e21243608abe51081e0 /src/test/ui/span | |
| parent | 51b0552bd7c32cf41317e81616f1f005328a68e7 (diff) | |
| download | rust-2c6b0e5cf7d07cee4b26732c162b5835ab5aa53b.tar.gz rust-2c6b0e5cf7d07cee4b26732c162b5835ab5aa53b.zip | |
Label definition of captured variables in errors.
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/borrowck-call-is-borrow-issue-12224.nll.stderr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/span/borrowck-call-is-borrow-issue-12224.nll.stderr b/src/test/ui/span/borrowck-call-is-borrow-issue-12224.nll.stderr index c7dbc043cda..a05a3911aa7 100644 --- a/src/test/ui/span/borrowck-call-is-borrow-issue-12224.nll.stderr +++ b/src/test/ui/span/borrowck-call-is-borrow-issue-12224.nll.stderr @@ -31,6 +31,9 @@ LL | f.f.call_mut(()) error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/borrowck-call-is-borrow-issue-12224.rs:66:13 | +LL | let mut f = move |g: Box<FnMut(isize)>, b: isize| { + | ----- captured outer variable +... LL | foo(f); | ^ cannot move out of captured variable in an `FnMut` closure |
