blob: 51bf0a8943255a7eff7588e22efa0d13b9aa6028 [file]
error[E0391]: cycle detected when computing layout of `Wrapper<()>`
--> $DIR/post-mono-layout-cycle.rs:11:1
|
LL | struct Wrapper<T: Trait> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
note: ...which requires computing layout of `<() as Trait>::Assoc`...
--> $DIR/post-mono-layout-cycle.rs:4:5
|
LL | type Assoc;
| ^^^^^^^^^^
= note: ...which again requires computing layout of `Wrapper<()>`, completing the cycle
note: cycle used when computing layout of `core::option::Option<Wrapper<()>>`
--> $SRC_DIR/core/src/option.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`.