rust/tests/ui/issues/issue-22874.rs
2023-01-11 09:32:08 +00:00

11 lines
153 B
Rust

struct Table {
rows: [[String]],
//~^ ERROR the size for values of type
}
fn f(table: &Table) -> &[String] {
&table.rows[0]
}
fn main() {}