about summary refs log tree commit diff
path: root/tests/ui/wf/wf-array-elem-sized.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/wf/wf-array-elem-sized.rs')
-rw-r--r--tests/ui/wf/wf-array-elem-sized.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/wf/wf-array-elem-sized.rs b/tests/ui/wf/wf-array-elem-sized.rs
new file mode 100644
index 00000000000..34bf2203426
--- /dev/null
+++ b/tests/ui/wf/wf-array-elem-sized.rs
@@ -0,0 +1,11 @@
+// Check that array element types must be Sized. Issue #25692.
+
+
+#![allow(dead_code)]
+
+struct Foo {
+    foo: [[u8]], //~ ERROR E0277
+}
+
+
+fn main() { }