summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-44415.rs
blob: d93b451be453a2f6510a1f4229b576887ceeaf77 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![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() {}