change borrowck error msg: 'declared in outer block' -> 'captured in a closure' (properly this time)
This commit is contained in:
parent
e41029d236
commit
8ffab392ab
8 changed files with 12 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue