rust/tests/ui/consts/const-size_of-cycle.rs
2023-01-11 09:32:08 +00:00

8 lines
107 B
Rust

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