diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-09 13:56:47 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-09 14:01:39 -0400 |
| commit | 8ffab392ab286ac4e8028adcdae78e512c6409eb (patch) | |
| tree | 535bf806723466feae5fc90d454ecaddbb2a54d3 /src/test/compile-fail/lambda-mutate.rs | |
| parent | e41029d236c940e7ffb08c43e6cee23025ba029d (diff) | |
| download | rust-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.rs')
| -rw-r--r-- | src/test/compile-fail/lambda-mutate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/lambda-mutate.rs b/src/test/compile-fail/lambda-mutate.rs index ce36ac7b127..8886f930e20 100644 --- a/src/test/compile-fail/lambda-mutate.rs +++ b/src/test/compile-fail/lambda-mutate.rs @@ -1,4 +1,4 @@ -// error-pattern:assigning to variable declared in an outer block +// error-pattern:assigning to captured outer variable in a heap closure // Make sure we can't write to upvars from fn@s fn main() { let i = 0; |
