Skip to content

Commit 218ad47

Browse files
committed
---
yaml --- r: 158717 b: refs/heads/snap-stage3 c: cf753a2 h: refs/heads/master i: 158715: d7c7423 v: v3
1 parent 7b8dc78 commit 218ad47

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,7 +1,7 @@
11
---
22
refs/heads/master: 0b48001c28329392b26961eaf1c3ed293a352d6f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ff361530b50ab10570085f3d611d834cc4ece4a5
4+
refs/heads/snap-stage3: cf753a2dc7c060bcbf6d9241032cf57e597393eb
55
refs/heads/try: f58aad6dce273570fb130b4df008ef9acd5a5be2
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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

branches/snap-stage3/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

branches/snap-stage3/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)