Skip to content

Commit 6c7e728

Browse files
committed
---
yaml --- r: 178226 b: refs/heads/master c: 60fa1ff h: refs/heads/master v: v3
1 parent 5ff6a81 commit 6c7e728

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 1935bbd91321b4ebb61b21a300f43234a0be6433
2+
refs/heads/master: 60fa1ff347588027c4a1786b978f386447c35016
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 474b324eda10440d6568ef872a7307d38e7de95b
55
refs/heads/try: fde4472848b662a4d1236388c4cf15e2450237e6

trunk/src/test/compile-fail/associated-types-ICE-when-projecting-out-of-err.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ trait Add<RHS=Self> {
2929

3030
fn ice<A>(a: A) {
3131
let r = loop {};
32-
r = r + a; // here the type `r` is not yet inferred, hence `r+a` generates an error.
33-
//~^ ERROR type of this value must be known
32+
r = r + a;
33+
//~^ ERROR binary operation `+` cannot be applied to type `A`
3434
}

trunk/src/test/compile-fail/issue-2149.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl<A> vec_monad<A> for Vec<A> {
1616
fn bind<B, F>(&self, mut f: F) where F: FnMut(A) -> Vec<B> {
1717
let mut r = panic!();
1818
for elt in self.iter() { r = r + f(*elt); }
19-
//~^ ERROR the type of this value must be known
19+
//~^ ERROR binary operation `+` cannot be applied to type `collections::vec::Vec<B>`
2020
}
2121
}
2222
fn main() {

0 commit comments

Comments
 (0)