Files
rust/tests/ui/unsized/unsized-slice-element.rs
2026-06-18 05:28:05 +02:00

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() {}