test: fix compile-fail tests somehow missed from local 'make check', r=burningtree.

This commit is contained in:
Graydon Hoare 2013-01-30 17:07:35 -08:00
parent 4030aaff20
commit 040035cd08
2 changed files with 3 additions and 3 deletions

@ -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 {

@ -13,7 +13,7 @@ impl int: bar { fn dup() -> int { self } fn blah<X>() {} }
impl uint: bar { fn dup() -> uint { self } fn blah<X>() {} }
fn main() {
10.dup::<int>(); //~ ERROR does not take type parameters
10.blah::<int, int>(); //~ ERROR incorrect number of type parameters
10i.dup::<int>(); //~ ERROR does not take type parameters
10i.blah::<int, int>(); //~ ERROR incorrect number of type parameters
(10 as bar).dup(); //~ ERROR contains a self-type
}