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