diff options
| author | Jakub Bukaj <jakub@jakub.cc> | 2014-10-21 03:40:15 +0200 |
|---|---|---|
| committer | Jakub Bukaj <jakub@jakub.cc> | 2014-10-24 19:43:47 +0200 |
| commit | 1484f9cd46013a227d1d057508ff57ebc5930a8d (patch) | |
| tree | 339c2cd603ab76074235fb4e7f41f1bd2cf088b4 /src/test/compile-fail/destructure-trait-ref.rs | |
| parent | 4380e96c0470d746267a11633fafe3e4ea459687 (diff) | |
| download | rust-1484f9cd46013a227d1d057508ff57ebc5930a8d.tar.gz rust-1484f9cd46013a227d1d057508ff57ebc5930a8d.zip | |
Update tests with the new error messages
Diffstat (limited to 'src/test/compile-fail/destructure-trait-ref.rs')
| -rw-r--r-- | src/test/compile-fail/destructure-trait-ref.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/compile-fail/destructure-trait-ref.rs b/src/test/compile-fail/destructure-trait-ref.rs index 27aa43638f4..a2a5a3e257f 100644 --- a/src/test/compile-fail/destructure-trait-ref.rs +++ b/src/test/compile-fail/destructure-trait-ref.rs @@ -30,12 +30,12 @@ fn main() { let &&x = &&(&1i as &T); // n == m - let &x = &1i as &T; //~ ERROR cannot be dereferenced - let &&x = &(&1i as &T); //~ ERROR cannot be dereferenced - let box x = box 1i as Box<T>; //~ ERROR cannot be dereferenced + let &x = &1i as &T; //~ ERROR type `&T` cannot be dereferenced + let &&x = &(&1i as &T); //~ ERROR type `&T` cannot be dereferenced + let box x = box 1i as Box<T>; //~ ERROR type `Box<T>` cannot be dereferenced // n > m - let &&x = &1i as &T; //~ ERROR found an `&`-pointer pattern - let &&&x = &(&1i as &T); //~ ERROR found an `&`-pointer pattern - let box box x = box 1i as Box<T>; //~ ERROR found a box pattern + let &&x = &1i as &T; //~ ERROR found &-ptr + let &&&x = &(&1i as &T); //~ ERROR found &-ptr + let box box x = box 1i as Box<T>; //~ ERROR found box } |
