rust/src/test/ui/issues/issue-44415.rs
2018-12-25 21:08:33 -07:00

12 lines
216 B
Rust

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