]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22874.rs
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-22874.rs
1 struct Table {
2     rows: [[String]],
3     //~^ ERROR the size for values of type
4 }
5
6 fn f(table: &Table) -> &[String] {
7     &table.rows[0]
8 }
9
10 fn main() {}