Skip to content

Commit

Permalink
test: fix compile-fail tests somehow missed from local 'make check', …
Browse files Browse the repository at this point in the history
…r=burningtree.
  • Loading branch information
graydon committed Jan 31, 2013
1 parent 4030aaf commit 040035c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/compile-fail/auto-ref-slice-plus-ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/test/compile-fail/trait-test-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 040035c

Please sign in to comment.