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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
219 B
Rust
Raw Normal View History

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