diff options
Diffstat (limited to 'src/test/compile-fail/coercion-slice.rs')
| -rw-r--r-- | src/test/compile-fail/coercion-slice.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/compile-fail/coercion-slice.rs b/src/test/compile-fail/coercion-slice.rs index 8d48ede0e15..d7a37d26991 100644 --- a/src/test/compile-fail/coercion-slice.rs +++ b/src/test/compile-fail/coercion-slice.rs @@ -11,5 +11,10 @@ // Tests that we forbid coercion from `[T; n]` to `&[T]` fn main() { - let _: &[isize] = [0is]; //~ERROR: mismatched types: expected `&[isize]`, found `[isize; 1]` + let _: &[isize] = [0is]; + //~^ ERROR mismatched types + //~| expected `&[isize]` + //~| found `[isize; 1]` + //~| expected &-ptr + //~| found array of 1 elements } |
