rust/tests/ui/consts/issue-44415.rs

12 lines
219 B
Rust
Raw Normal View History

2018-01-24 05:46:51 -06:00
#![feature(core_intrinsics)]
use std::intrinsics;
struct Foo {
bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
2022-06-02 12:42:29 -05:00
//~^ ERROR cycle detected when evaluating type-level constant
2018-01-24 05:46:51 -06:00
x: usize,
}
fn main() {}