about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-08-07 17:06:21 +0200
committerDavid Wood <david@davidtw.co>2018-08-14 17:36:03 +0200
commit2c6b0e5cf7d07cee4b26732c162b5835ab5aa53b (patch)
tree398b13a565cbb757179d8e21243608abe51081e0 /src/test/ui/span
parent51b0552bd7c32cf41317e81616f1f005328a68e7 (diff)
downloadrust-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.stderr3
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