]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-44415.stderr
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / ui / consts / issue-44415.stderr
1 error[E0391]: cycle detected when simplifying constant for the type system `Foo::bytes::{constant#0}`
2   --> $DIR/issue-44415.rs:6:17
3    |
4 LL |     bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
5    |                 ^^^^^^
6    |
7 note: ...which requires simplifying constant for the type system `Foo::bytes::{constant#0}`...
8   --> $DIR/issue-44415.rs:6:17
9    |
10 LL |     bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
11    |                 ^^^^^^
12 note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
13   --> $DIR/issue-44415.rs:6:17
14    |
15 LL |     bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
16    |                 ^^^^^^
17    = note: ...which requires computing layout of `Foo`...
18    = note: ...which requires normalizing `[u8; _]`...
19    = note: ...which again requires simplifying constant for the type system `Foo::bytes::{constant#0}`, completing the cycle
20 note: cycle used when checking that `Foo` is well-formed
21   --> $DIR/issue-44415.rs:5:1
22    |
23 LL | struct Foo {
24    | ^^^^^^^^^^
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0391`.