//~ ERROR cycle detected when computing layout of `core::option::Option` //~| NOTE ...which requires computing layout of `S`... //~| NOTE ...which requires computing layout of `core::option::Option<::It>`... //~| NOTE ...which again requires computing layout of `core::option::Option`, completing the cycle //~| NOTE cycle used when computing layout of `core::option::Option<::It>` trait Mirror { type It: ?Sized; } impl Mirror for T { type It = Self; } struct S(Option<::It>); fn main() { let _s = S(None); }