Skip to content

Commit b066d09

Browse files
committed
Patch up broken error messages
1 parent 646ec7d commit b066d09

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/libcore/ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ shr_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64)
638638
* ```
639639
*/
640640
#[lang="index"]
641-
pub trait Index<Index, Result> {
641+
pub trait Index<Index, Sized? Result> {
642642
/// The method for the indexing (`Foo[Bar]`) operation
643643
fn index<'a>(&'a self, index: &Index) -> &'a Result;
644644
}

src/test/compile-fail/issue-17636.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ pub fn build_archive<'a, I: MyItem<&'a (|&uint|:'a)>>(files: I) {}
1515

1616
fn main() {
1717
build_archive(&(|_| { }));
18-
//~^ ERROR unable to infer enough type information to locate the impl of the trait `MyItem<&|&uint|
18+
//~^ ERROR not implemented
1919
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ impl<A> vec_monad<A> for Vec<A> {
1818
let mut r = fail!();
1919
for elt in self.iter() { r = r + f(*elt); }
2020
//~^ ERROR the type of this value must be known
21+
//~^^ ERROR not implemented
2122
}
2223
}
2324
fn main() {

0 commit comments

Comments
 (0)