Make error patterns in some kind tests more specific

This commit is contained in:
Brian Anderson 2011-09-28 14:24:56 -07:00
parent f7d0c1cec3
commit 14bac217b0
5 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// error-pattern: mismatched kinds
// error-pattern: needed shared type, got pinned type block
fn lol(f: block()) -> block() { ret f; }
fn main() { let i = 8; let f = lol(block () { log_err i; }); f(); }

View File

@ -1,4 +1,4 @@
// error-pattern:mismatched kinds
// error-pattern:cannot copy pinned type foo
resource foo(i: int) { }

View File

@ -1,4 +1,4 @@
// error-pattern: mismatched kinds
// error-pattern: cannot copy pinned type ~~~{y: r}
resource r(i: @mutable int) {
*i = *i + 1;

View File

@ -1,4 +1,4 @@
// error-pattern:mismatched kinds
// error-pattern:needed shared type, got pinned type ~r
resource r(i: @mutable int) {
*i += 1;

View File

@ -1,4 +1,4 @@
// error-pattern: mismatched kinds
// error-pattern: needed shared type, got pinned type ~r
resource r(i: @mutable int) {
*i = *i + 1;