summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0620.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0620.stderr')
-rw-r--r--tests/ui/error-codes/E0620.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0620.stderr b/tests/ui/error-codes/E0620.stderr
new file mode 100644
index 000000000..65152b2b7
--- /dev/null
+++ b/tests/ui/error-codes/E0620.stderr
@@ -0,0 +1,15 @@
+error[E0620]: cast to unsized type: `&[usize; 2]` as `[usize]`
+ --> $DIR/E0620.rs:2:16
+ |
+LL | let _foo = &[1_usize, 2] as [usize];
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+help: consider using an implicit coercion to `&[usize]` instead
+ --> $DIR/E0620.rs:2:16
+ |
+LL | let _foo = &[1_usize, 2] as [usize];
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0620`.