rust/tests/ui/consts/const-size_of-cycle.rs

8 lines
108 B
Rust

//@ error-pattern: cycle detected
struct Foo {
bytes: [u8; std::mem::size_of::<Foo>()]
}
fn main() {}