about summary refs log tree commit diff
path: root/src/test/compile-fail/lambda-mutate-nested.rs
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2012-07-09 13:56:47 -0400
committerBen Blum <bblum@andrew.cmu.edu>2012-07-09 14:01:39 -0400
commit8ffab392ab286ac4e8028adcdae78e512c6409eb (patch)
tree535bf806723466feae5fc90d454ecaddbb2a54d3 /src/test/compile-fail/lambda-mutate-nested.rs
parente41029d236c940e7ffb08c43e6cee23025ba029d (diff)
downloadrust-8ffab392ab286ac4e8028adcdae78e512c6409eb.tar.gz
rust-8ffab392ab286ac4e8028adcdae78e512c6409eb.zip
change borrowck error msg: 'declared in outer block' -> 'captured in a closure' (properly this time)
Diffstat (limited to 'src/test/compile-fail/lambda-mutate-nested.rs')
-rw-r--r--src/test/compile-fail/lambda-mutate-nested.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/lambda-mutate-nested.rs b/src/test/compile-fail/lambda-mutate-nested.rs
index 944282a4deb..8b673e2b307 100644
--- a/src/test/compile-fail/lambda-mutate-nested.rs
+++ b/src/test/compile-fail/lambda-mutate-nested.rs
@@ -1,4 +1,4 @@
-// error-pattern:assigning to immutable variable declared in an outer block
+// error-pattern:assigning to captured outer immutable variable in a stack closure
 // Make sure that nesting a block within a fn@ doesn't let us
 // mutate upvars from a fn@.
 fn f2(x: fn()) { x(); }