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

12 lines
196 B
Rust

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