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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
196 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]
//~^ ERROR the size for values of type
}
fn main() {}