]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/block-arg-used-as-lambda-with-illegal-cap.rs
Remove proto_sugar and 'lambda' as keyword, commit to fn@.
[rust.git] / src / test / compile-fail / block-arg-used-as-lambda-with-illegal-cap.rs
index d5a0042d107a1a66fae9684e9c1eb52e7b50991a..a7348b26fa207d4c7a3b3070a845582d61c90e67 100644 (file)
@@ -1,10 +1,10 @@
 // error-pattern: copying a noncopyable value
 
-fn to_lambda1(f: lambda(uint) -> uint) -> lambda(uint) -> uint {
+fn to_lambda1(f: fn@(uint) -> uint) -> fn@(uint) -> uint {
     ret f;
 }
 
-fn to_lambda2(b: block(uint) -> uint) -> lambda(uint) -> uint {
+fn to_lambda2(b: block(uint) -> uint) -> fn@(uint) -> uint {
     ret to_lambda1({|x| b(x)});
 }