change borrowck error msg: 'declared in outer block' -> 'captured in a closure' (properly this time)

This commit is contained in:
Ben Blum 2012-07-09 13:56:47 -04:00
parent e41029d236
commit 8ffab392ab
8 changed files with 12 additions and 10 deletions

View file

@ -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;