rust/tests/ui/issues/issue-22874.rs

11 lines
153 B
Rust
Raw Normal View History

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