Skip to content

Commit 040035c

Browse files
committed
test: fix compile-fail tests somehow missed from local 'make check', r=burningtree.
1 parent 4030aaf commit 040035c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/compile-fail/auto-ref-slice-plus-ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn main() {
1616
// temporary, which would be a source of confusion
1717

1818
let mut a = @[0];
19-
a.test_mut(); //~ ERROR type `@[int]` does not implement any method in scope named `test_mut`
19+
a.test_mut(); //~ ERROR does not implement any method in scope named `test_mut`
2020
}
2121

2222
trait MyIter {

src/test/compile-fail/trait-test-2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl int: bar { fn dup() -> int { self } fn blah<X>() {} }
1313
impl uint: bar { fn dup() -> uint { self } fn blah<X>() {} }
1414

1515
fn main() {
16-
10.dup::<int>(); //~ ERROR does not take type parameters
17-
10.blah::<int, int>(); //~ ERROR incorrect number of type parameters
16+
10i.dup::<int>(); //~ ERROR does not take type parameters
17+
10i.blah::<int, int>(); //~ ERROR incorrect number of type parameters
1818
(10 as bar).dup(); //~ ERROR contains a self-type
1919
}

0 commit comments

Comments
 (0)