1 error[E0391]: cycle detected when evaluate type-level constant
2 --> $DIR/issue-44415.rs:6:17
4 LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
7 note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
8 --> $DIR/issue-44415.rs:6:17
10 LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
12 note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
13 --> $DIR/issue-44415.rs:6:17
15 LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
17 = note: ...which requires computing layout of `Foo`...
18 = note: ...which requires computing layout of `[u8; _]`...
19 = note: ...which requires normalizing `[u8; _]`...
20 = note: ...which again requires evaluate type-level constant, completing the cycle
21 note: cycle used when checking that `Foo` is well-formed
22 --> $DIR/issue-44415.rs:5:1
27 error: aborting due to previous error
29 For more information about this error, try `rustc --explain E0391`.