summary refs log tree commit diff
path: root/src/test/compile-fail/issue-44415.rs
blob: 71e764620d1404d5d1db460791a62010a5457c67 (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 simplifying constant for the type system
    x: usize,
}

fn main() {}