diff options
Diffstat (limited to 'src/test/ui/coercion/coercion-slice.rs')
-rw-r--r-- | src/test/ui/coercion/coercion-slice.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/coercion/coercion-slice.rs b/src/test/ui/coercion/coercion-slice.rs deleted file mode 100644 index b756c8f82..000000000 --- a/src/test/ui/coercion/coercion-slice.rs +++ /dev/null @@ -1,7 +0,0 @@ -// Tests that we forbid coercion from `[T; n]` to `&[T]` - -fn main() { - let _: &[i32] = [0]; - //~^ ERROR mismatched types - //~| expected `&[i32]`, found array `[{integer}; 1]` -} |