rust/tests/ui/consts/const-size_of-cycle.rs
2024-02-16 20:02:50 +00:00

8 lines
108 B
Rust

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