about summary refs log tree commit diff
path: root/src/test/compile-fail/lambda-mutate-nested.rs
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-01-09 16:12:37 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-01-09 16:12:48 -0800
commit8387896ddaa5fbe2ba39b9ad06fd02e1bfcb76e7 (patch)
treed326dd79d45136f7cd2960491e89607d671172e5 /src/test/compile-fail/lambda-mutate-nested.rs
parentf6ecbe88ca67769ccb9def337ada9ae25235e00e (diff)
downloadrust-8387896ddaa5fbe2ba39b9ad06fd02e1bfcb76e7.tar.gz
rust-8387896ddaa5fbe2ba39b9ad06fd02e1bfcb76e7.zip
Remove proto_sugar and 'lambda' as keyword, commit to fn@.
Diffstat (limited to 'src/test/compile-fail/lambda-mutate-nested.rs')
-rw-r--r--src/test/compile-fail/lambda-mutate-nested.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/lambda-mutate-nested.rs b/src/test/compile-fail/lambda-mutate-nested.rs
index 0a733687aa3..2117eeefe8b 100644
--- a/src/test/compile-fail/lambda-mutate-nested.rs
+++ b/src/test/compile-fail/lambda-mutate-nested.rs
@@ -1,11 +1,11 @@
 // error-pattern:assigning to upvar
-// Make sure that nesting a block within a lambda doesn't let us
-// mutate upvars from a lambda.
+// Make sure that nesting a block within a fn@ doesn't let us
+// mutate upvars from a fn@.
 fn f2(x: block()) { x(); }
 
 fn main() {
     let i = 0;
-    let ctr = lambda () -> int { f2({|| i = i + 1; }); ret i; };
+    let ctr = fn@ () -> int { f2({|| i = i + 1; }); ret i; };
     log(error, ctr());
     log(error, ctr());
     log(error, ctr());