about summary refs log tree commit diff
path: root/tests/ui/issues/issue-22874.rs
blob: c4500aacb61842fefc6a3c9100cf255a43e7387d (plain)
1
2
3
4
5
6
7
8
9
10
11
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() {}