mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 09:44:40 +00:00
14 lines
271 B
Rust
14 lines
271 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/22874>.
|
|
|
|
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() {}
|