summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22874.rs
blob: 37c6c8143524aa97b7380ff06c069d911e410c93 (plain)
1
2
3
4
5
6
7
8
9
10
struct Table {
    rows: [[String]],
    //~^ ERROR the size for values of type
}

fn f(table: &Table) -> &[String] {
    &table.rows[0]
}

fn main() {}