]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-size_of-cycle.stderr
ab8b5792e681d58bb7e6c9af3193f77664c00252
[rust.git] / src / test / ui / consts / const-size_of-cycle.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   --> $SRC_DIR/libcore/mem.rs:LL:COL
6    |
7 LL |     intrinsics::size_of::<T>()
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
9    = note: ...which again requires computing layout of `Foo`, completing the cycle
10 note: cycle used when const-evaluating `Foo::bytes::{{constant}}`
11   --> $SRC_DIR/libcore/mem.rs:LL:COL
12    |
13 LL |     intrinsics::size_of::<T>()
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0391`.