fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when evaluating type-level constant 2 --> $DIR/issue-44415.rs:6:17 3 | 4LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }], 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`... 8 --> $DIR/issue-44415.rs:6:17 9 | 10LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }], 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`... 13 --> $DIR/issue-44415.rs:6:17 14 | 15LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }], 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 = note: ...which requires computing layout of `Foo`... 18 = note: ...which requires computing layout of `[u8; unsafe { intrinsics::size_of::<Foo>() }]`... 19 = note: ...which requires normalizing `[u8; unsafe { intrinsics::size_of::<Foo>() }]`... 20 = note: ...which again requires evaluating type-level constant, completing the cycle 21note: cycle used when checking that `Foo` is well-formed 22 --> $DIR/issue-44415.rs:5:1 23 | 24LL | struct Foo { 25 | ^^^^^^^^^^ 26 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 27 28error: aborting due to previous error 29 30For more information about this error, try `rustc --explain E0391`.