test: fix compile-fail tests somehow missed from local 'make check', r=burningtree.
This commit is contained in:
parent
4030aaff20
commit
040035cd08
src/test/compile-fail
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user