Skip to content

Commit 1d87bfe

Browse files
committed
---
yaml --- r: 37809 b: refs/heads/try c: 83a55ea h: refs/heads/master i: 37807: 01d9a22 v: v3
1 parent a264533 commit 1d87bfe

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: c19c24d193780bf889b62fe71770dfb3fbbae73f
5+
refs/heads/try: 83a55ea73a985a331635fe5a8c505f7f74328c11
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/test/compile-fail/class-cast-to-trait.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// error-pattern: attempted access of field `eat` on type `@noisy`
21
trait noisy {
32
fn speak();
43
}
@@ -50,5 +49,5 @@ fn cat(in_x : uint, in_y : int, in_name: ~str) -> cat {
5049

5150
fn main() {
5251
let nyan : noisy = cat(0, 2, ~"nyan") as noisy;
53-
nyan.eat();
52+
nyan.eat(); //~ ERROR type `@noisy` does not implement any method in scope named `eat`
5453
}

branches/try/src/test/compile-fail/issue-1871.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn main() {
44
let f = 42;
55

66
let _g = if f < 5 {
7-
f.honk() //~ ERROR attempted access of field `honk`
7+
f.honk() //~ ERROR does not implement any method in scope named `honk`
88
}
99
else {
1010
()

branches/try/src/test/compile-fail/issue-1896-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn createClosure (closedUint: uint) -> boxedFn {
77
fn main () {
88
let aFn: boxedFn = createClosure(10);
99

10-
let myInt: uint = aFn.theFn();
10+
let myInt: uint = (aFn.theFn)();
1111

1212
assert myInt == 10;
1313
}

branches/try/src/test/compile-fail/issue-2149.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ impl<A> ~[A]: vec_monad<A> {
1111
}
1212
}
1313
fn main() {
14-
["hi"].bind({|x| [x] }); //~ ERROR attempted access of field `bind`
14+
["hi"].bind({|x| [x] }); //~ ERROR type `[&static/str]/1` does not implement any method in scope named `bind`
1515
}

branches/try/src/test/compile-fail/pure-loop-body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pure fn range2(from: uint, to: uint, f: fn(uint)) {
1414

1515
pure fn range3(from: uint, to: uint, f: {x: fn(uint)}) {
1616
for range(from, to) |i| {
17-
f.x(i*2u); //~ ERROR access to impure function prohibited
17+
(f.x)(i*2u); //~ ERROR access to impure function prohibited
1818
}
1919
}
2020

branches/try/src/test/compile-fail/regions-steal-closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ fn main() {
1111
let mut i = 3;
1212
box_it(|| i += 1) //~ ERROR cannot infer an appropriate lifetime
1313
};
14-
cl_box.cl();
14+
(cl_box.cl)();
1515
}

0 commit comments

Comments
 (0)