diff --git a/src/test/compile-fail/auto-ref-slice-plus-ref.rs b/src/test/compile-fail/auto-ref-slice-plus-ref.rs index 41b0fd5227e..f80112834ea 100644 --- a/src/test/compile-fail/auto-ref-slice-plus-ref.rs +++ b/src/test/compile-fail/auto-ref-slice-plus-ref.rs @@ -16,7 +16,7 @@ fn main() { // temporary, which would be a source of confusion let mut a = @[0]; - a.test_mut(); //~ ERROR type `@[int]` does not implement any method in scope named `test_mut` + a.test_mut(); //~ ERROR does not implement any method in scope named `test_mut` } trait MyIter { diff --git a/src/test/compile-fail/trait-test-2.rs b/src/test/compile-fail/trait-test-2.rs index efab55f725e..e8ed23d319b 100644 --- a/src/test/compile-fail/trait-test-2.rs +++ b/src/test/compile-fail/trait-test-2.rs @@ -13,7 +13,7 @@ impl int: bar { fn dup() -> int { self } fn blah() {} } impl uint: bar { fn dup() -> uint { self } fn blah() {} } fn main() { - 10.dup::(); //~ ERROR does not take type parameters - 10.blah::(); //~ ERROR incorrect number of type parameters + 10i.dup::(); //~ ERROR does not take type parameters + 10i.blah::(); //~ ERROR incorrect number of type parameters (10 as bar).dup(); //~ ERROR contains a self-type }