1 error[E0391]: cycle detected when const-evaluating + checking `Foo::bytes::{{constant}}#0`
2 --> $DIR/const-size_of-cycle.rs:6:17
4 LL | bytes: [u8; std::mem::size_of::<Foo>()]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: ...which requires const-evaluating + checking `Foo::bytes::{{constant}}#0`...
8 --> $DIR/const-size_of-cycle.rs:6:17
10 LL | bytes: [u8; std::mem::size_of::<Foo>()]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12 note: ...which requires const-evaluating `Foo::bytes::{{constant}}#0`...
13 --> $SRC_DIR/libcore/mem/mod.rs:LL:COL
15 LL | intrinsics::size_of::<T>()
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
17 = note: ...which requires computing layout of `Foo`...
18 = note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
19 = note: ...which again requires const-evaluating + checking `Foo::bytes::{{constant}}#0`, completing the cycle
20 note: cycle used when processing `Foo`
21 --> $DIR/const-size_of-cycle.rs:5:1
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0391`.