diff options
| author | mdinger <mdinger.bugzilla@gmail.com> | 2015-01-12 01:01:44 -0500 |
|---|---|---|
| committer | mdinger <mdinger.bugzilla@gmail.com> | 2015-01-12 01:34:13 -0500 |
| commit | 7b82a93be3798d9345cd459e251bcc571cf60a79 (patch) | |
| tree | 0308a3af571fbcd3f0b3b17232e76e5628985ddf /src/test/compile-fail/destructure-trait-ref.rs | |
| parent | 5616b92e4d56dff3353d3e5f3ca6b16cb7ad60e6 (diff) | |
| download | rust-7b82a93be3798d9345cd459e251bcc571cf60a79.tar.gz rust-7b82a93be3798d9345cd459e251bcc571cf60a79.zip | |
Fix testsuite errors
Diffstat (limited to 'src/test/compile-fail/destructure-trait-ref.rs')
| -rw-r--r-- | src/test/compile-fail/destructure-trait-ref.rs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/test/compile-fail/destructure-trait-ref.rs b/src/test/compile-fail/destructure-trait-ref.rs index 5166ef8f72f..5cc0d6a143a 100644 --- a/src/test/compile-fail/destructure-trait-ref.rs +++ b/src/test/compile-fail/destructure-trait-ref.rs @@ -37,7 +37,22 @@ fn main() { let box x = box 1is as Box<T>; //~ ERROR type `Box<T>` cannot be dereferenced // n > m - let &&x = &1is as &T; //~ ERROR found &-ptr - let &&&x = &(&1is as &T); //~ ERROR found &-ptr - let box box x = box 1is as Box<T>; //~ ERROR found box + let &&x = &1is as &T; + //~^ ERROR mismatched types + //~| expected `T` + //~| found `&_` + //~| expected trait T + //~| found &-ptr + let &&&x = &(&1is as &T); + //~^ ERROR mismatched types + //~| expected `T` + //~| found `&_` + //~| expected trait T + //~| found &-ptr + let box box x = box 1is as Box<T>; + //~^ ERROR mismatched types + //~| expected `T` + //~| found `Box<_>` + //~| expected trait T + //~| found box } |
