Skip to content

Commit 54130d6

Browse files
committed
---
yaml --- r: 158145 b: refs/heads/master c: cf753a2 h: refs/heads/master i: 158143: 3105464 v: v3
1 parent af3e12c commit 54130d6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ff361530b50ab10570085f3d611d834cc4ece4a5
2+
refs/heads/master: cf753a2dc7c060bcbf6d9241032cf57e597393eb
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 1b2ad7831f1745bf4a4709a1fa1772afb47c933c
55
refs/heads/try: 98bd84a3300f974f400a3eeb56567ad3f77b13f0

trunk/src/test/compile-fail/unboxed-closures-static-call-wrong-trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
fn main() {
1414
let mut_ = |&mut: x| x;
15-
mut_.call_once((0i, )); //~ ERROR type `closure` does not implement
15+
mut_.call((0i, )); //~ ERROR type `closure` does not implement
1616
}
1717

trunk/src/test/compile-fail/unboxed-closures-vtable-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn call_it<F:FnMut<(int,int),int>>(y: int, mut f: F) -> int {
1818

1919
pub fn main() {
2020
let f = |&mut: x: uint, y: int| -> int { (x as int) + y };
21-
let z = call_it(3, f); //~ ERROR type mismatch
21+
let z = call_it(3, f); //~ ERROR not implemented
2222
println!("{}", z);
2323
}
2424

trunk/src/test/compile-fail/unboxed-closures-wrong-trait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
#![feature(lang_items, overloaded_calls, unboxed_closures)]
1212

13-
fn c<F:FnOnce(int, int) -> int>(f: F) -> int {
13+
fn c<F:Fn(int, int) -> int>(f: F) -> int {
1414
f(5, 6)
1515
}
1616

1717
fn main() {
1818
let z: int = 7;
19-
assert_eq!(c(|&: x: int, y| x + y + z), 10);
19+
assert_eq!(c(|&mut: x: int, y| x + y + z), 10);
2020
//~^ ERROR not implemented
2121
}
2222

0 commit comments

Comments
 (0)