2018-08-08 14:28:26 +02:00
|
|
|
error[E0391]: cycle detected when computing layout of `Foo`
|
|
|
|
|
|
|
|
|
note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All }, value: [u8; _] }`...
|
|
|
|
note: ...which requires const-evaluating `Foo::bytes::{{constant}}`...
|
2018-08-21 12:57:11 +02:00
|
|
|
--> $SRC_DIR/libcore/mem.rs:LL:COL
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2018-08-22 15:56:37 +02:00
|
|
|
LL | intrinsics::size_of::<T>()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
= note: ...which again requires computing layout of `Foo`, completing the cycle
|
|
|
|
note: cycle used when const-evaluating `Foo::bytes::{{constant}}`
|
2018-08-21 12:57:11 +02:00
|
|
|
--> $SRC_DIR/libcore/mem.rs:LL:COL
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2018-08-22 15:56:37 +02:00
|
|
|
LL | intrinsics::size_of::<T>()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0391`.
|