diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-01-10 06:49:15 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-01-10 13:31:06 -0800 |
| commit | 8b911587dfed1cc1973b361865c3632a2e2cffde (patch) | |
| tree | 7a0be45d1690d5ccc80a23e80243f20076bf93eb /src/test/compile-fail | |
| parent | af086aa8ef0628cc21d4dc5831258bf45c9bb872 (diff) | |
| download | rust-8b911587dfed1cc1973b361865c3632a2e2cffde.tar.gz rust-8b911587dfed1cc1973b361865c3632a2e2cffde.zip | |
rename sendfn to fn~, lambda to fn@
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/sendfn-is-not-a-lambda.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/compile-fail/sendfn-is-not-a-lambda.rs b/src/test/compile-fail/sendfn-is-not-a-lambda.rs index 1be97b94654..ca8701c692e 100644 --- a/src/test/compile-fail/sendfn-is-not-a-lambda.rs +++ b/src/test/compile-fail/sendfn-is-not-a-lambda.rs @@ -1,10 +1,8 @@ -// error-pattern: mismatched types: expected `fn@(++uint) -> uint` - fn test(f: fn@(uint) -> uint) -> uint { ret f(22u); } fn main() { - let f = sendfn(x: uint) -> uint { ret 4u; }; - log(debug, test(f)); + let f = fn~(x: uint) -> uint { ret 4u; }; + log(debug, test(f)); //! ERROR expected `fn@(++uint) -> uint` } |
