File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5
- refs/heads/try: ec11f66dbf68c7d0a958b28e520f547c885a3fde
5
+ refs/heads/try: a55011e788e3523cc37c1fca47fc334a74682369
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ use std::ops::FnMut;
14
14
15
15
pub fn main ( ) {
16
16
let mut f = |& mut : x: int , y : int | -> int { x + y } ;
17
- let z = f ( 1 u, 2 ) ; //~ ERROR type mismatch
17
+ let z = f ( 1 u, 2 ) ; //~ ERROR mismatched types
18
18
println ! ( "{}" , z) ;
19
19
}
Original file line number Diff line number Diff line change 11
11
// Tests calls to closure arguments where the closure takes 0 arguments.
12
12
// This is a bit tricky due to rust-call ABI.
13
13
14
- fn foo ( f : & mut FnMut ( ) ) -> int {
14
+ fn foo ( f : & mut FnMut ( ) -> int ) -> int {
15
15
f ( )
16
16
}
17
17
18
18
fn main ( ) {
19
- let z = foo ( || 22 ) ;
19
+ let z = foo ( & mut || 22 ) ;
20
20
assert_eq ! ( z, 22 ) ;
21
21
}
You can’t perform that action at this time.
0 commit comments