blob: 346bae58c1b2eac0b5b42d019c29b21759cd8138 [file]
error[E0391]: cycle detected when computing layout of `S<S<()>>`
--> $DIR/layout-cycle.rs:7:1
|
LL | pub struct S<T: Tr> {
| ^^^^^^^^^^^^^^^^^^^
|
note: ...which requires computing layout of `<S<()> as Tr>::I`...
--> $DIR/layout-cycle.rs:13:5
|
LL | type I: Tr;
| ^^^^^^^^^^
= note: ...which again requires computing layout of `S<S<()>>`, completing the cycle
note: cycle used when const-evaluating + checking `core::mem::SizedTypeProperties::SIZE`
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
= note: for more information, see <https://rustc-dev-guide.rust-lang.org/overview.html#queries> and <https://rustc-dev-guide.rust-lang.org/query.html>
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.