2023-08-28 12:40:39 -07:00
|
|
|
error[E0391]: cycle detected when computing layout of `S<S<()>>`
|
|
|
|
|
|
|
|
|
|
|
= note: ...which requires computing layout of `<S<()> as Tr>::I`...
|
|
|
|
|
= note: ...which again requires computing layout of `S<S<()>>`, completing the cycle
|
2025-10-16 21:23:43 +00:00
|
|
|
note: cycle used when const-evaluating + checking `core::mem::SizedTypeProperties::SIZE`
|
|
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
2023-08-28 12:40:39 -07:00
|
|
|
= 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
|
|
|
|
|
|
2025-10-16 21:23:43 +00:00
|
|
|
error[E0080]: a cycle occurred during layout computation
|
|
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
|
|
|
|
|
|
|
|
|
|
= note: evaluation of `<S<S<()>> as std::mem::SizedTypeProperties>::SIZE` failed here
|
|
|
|
|
|
|
|
|
|
note: the above error was encountered while instantiating `fn std::mem::size_of::<S<S<()>>>`
|
|
|
|
|
--> $DIR/layout-cycle.rs:26:5
|
|
|
|
|
|
|
|
|
|
|
LL | mem::size_of::<S<T>>()
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2023-08-28 12:40:39 -07:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
2025-10-16 21:23:43 +00:00
|
|
|
Some errors have detailed explanations: E0080, E0391.
|
|
|
|
|
For more information about an error, try `rustc --explain E0080`.
|