summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-22874.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-22874.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-22874.rs b/src/test/ui/issues/issue-22874.rs
new file mode 100644
index 000000000..37c6c8143
--- /dev/null
+++ b/src/test/ui/issues/issue-22874.rs
@@ -0,0 +1,10 @@
+struct Table {
+ rows: [[String]],
+ //~^ ERROR the size for values of type
+}
+
+fn f(table: &Table) -> &[String] {
+ &table.rows[0]
+}
+
+fn main() {}