]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-44415.stderr
ac2072c513ea099e6bcfd29319508bdbbd0e8a64
[rust.git] / src / test / ui / issues / issue-44415.stderr
1 error[E0391]: cycle detected when computing layout of `Foo`
2    |
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
6    |
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
12    |
13 LL |     bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
14    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0391`.