]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/fn-expr-type-state.rs
Remove proto_sugar and 'lambda' as keyword, commit to fn@.
[rust.git] / src / test / compile-fail / fn-expr-type-state.rs
index 5eb7541a520339fa381351e80caecefefec5b75e..cd7800b3780f0a5e8261c4dab0214e66ba3e39bd 100644 (file)
@@ -1,7 +1,7 @@
 // error-pattern:Unsatisfied precondition
 
 fn main() {
-    // Typestate should work even in a lambda. we should reject this program.
+    // Typestate should work even in a fn@. we should reject this program.
     let f = fn () -> int { let i: int; ret i; };
     log(error, f());
 }