| error[E0391]: cycle detected when computing layout of `S<S<()>>` | |
| --> tests/fail/layout_cycle.rs:LL:CC | |
| | | |
| LL | pub struct S<T: Tr> { | |
| | ^^^^^^^^^^^^^^^^^^^ | |
| | | |
| note: ...which requires computing layout of `<S<()> as Tr>::I`... | |
| --> tests/fail/layout_cycle.rs:LL:CC | |
| | | |
| 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` | |
| --> RUSTLIB/core/src/mem/mod.rs:LL:CC | |
| | | |
| LL | const SIZE: usize = intrinsics::size_of::<Self>(); | |
| | ^^^^^^^^^^^^^^^^^ | |
| = 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`. |