mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
12 lines
219 B
Rust
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() {}
|