rust/tests/ui/wf/wf-array-elem-sized.rs

12 lines
151 B
Rust

// Check that array element types must be Sized. Issue #25692.
#![allow(dead_code)]
struct Foo {
foo: [[u8]], //~ ERROR E0277
}
fn main() { }