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

7 lines
139 B
Rust

struct Foo {
bytes: [u8; std::mem::size_of::<Foo>()]
//~^ ERROR cycle detected when evaluating type-level constant
}
fn main() {}