diff --git a/src/test/compile-fail/block-copy.rs b/src/test/compile-fail/block-copy.rs index f6819fee5c6..c1a1971ee52 100644 --- a/src/test/compile-fail/block-copy.rs +++ b/src/test/compile-fail/block-copy.rs @@ -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(); } diff --git a/src/test/compile-fail/copy-a-resource.rs b/src/test/compile-fail/copy-a-resource.rs index 030872a1348..621f7b99d90 100644 --- a/src/test/compile-fail/copy-a-resource.rs +++ b/src/test/compile-fail/copy-a-resource.rs @@ -1,4 +1,4 @@ -// error-pattern:mismatched kinds +// error-pattern:cannot copy pinned type foo resource foo(i: int) { } diff --git a/src/test/compile-fail/pinned-deep-copy.rs b/src/test/compile-fail/pinned-deep-copy.rs index 33570b4061f..e5652637c6b 100644 --- a/src/test/compile-fail/pinned-deep-copy.rs +++ b/src/test/compile-fail/pinned-deep-copy.rs @@ -1,4 +1,4 @@ -// error-pattern: mismatched kinds +// error-pattern: cannot copy pinned type ~~~{y: r} resource r(i: @mutable int) { *i = *i + 1; diff --git a/src/test/compile-fail/unique-swap2.rs b/src/test/compile-fail/unique-swap2.rs index c2d751483fb..5a33fb3a503 100644 --- a/src/test/compile-fail/unique-swap2.rs +++ b/src/test/compile-fail/unique-swap2.rs @@ -1,4 +1,4 @@ -// error-pattern:mismatched kinds +// error-pattern:needed shared type, got pinned type ~r resource r(i: @mutable int) { *i += 1; diff --git a/src/test/compile-fail/unique-vec-res.rs b/src/test/compile-fail/unique-vec-res.rs index 94c5e538f98..467c50e14d6 100644 --- a/src/test/compile-fail/unique-vec-res.rs +++ b/src/test/compile-fail/unique-vec-res.rs @@ -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;