| 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: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information |
| |
| error: aborting due to 1 previous error |
| |
| For more information about this error, try `rustc --explain E0391`. |