summaryrefslogtreecommitdiffstats
path: root/tests/ui/cast/unsized-struct-cast.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/cast/unsized-struct-cast.stderr')
-rw-r--r--tests/ui/cast/unsized-struct-cast.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/cast/unsized-struct-cast.stderr b/tests/ui/cast/unsized-struct-cast.stderr
new file mode 100644
index 000000000..79b3d973c
--- /dev/null
+++ b/tests/ui/cast/unsized-struct-cast.stderr
@@ -0,0 +1,9 @@
+error[E0606]: casting `&[_; 0]` as `*const Data` is invalid
+ --> $DIR/unsized-struct-cast.rs:4:28
+ |
+LL | const _: *const Data = &[] as *const Data;
+ | ^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0606`.