rust/tests/ui/consts/issue-44415.rs
2023-01-11 09:32:08 +00:00

12 lines
219 B
Rust

#![feature(core_intrinsics)]
use std::intrinsics;
struct Foo {
bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
//~^ ERROR cycle detected when evaluating type-level constant
x: usize,
}
fn main() {}