1 error[E0391]: cycle detected when computing layout of `Foo`
3 note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All }, value: [u8; _] }`...
4 note: ...which requires const-evaluating `Foo::bytes::{{constant}}`...
5 --> $DIR/issue-44415.rs:19:26
7 LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 = note: ...which again requires computing layout of `Foo`, completing the cycle
10 note: cycle used when const-evaluating `Foo::bytes::{{constant}}`
11 --> $DIR/issue-44415.rs:19:26
13 LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0391`.