//~ ERROR cycle detected when computing layout (naive) of `core::option::Option` //~| 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 //~| NOTE ...which requires computing layout (naive) of `S`... //~| NOTE ...which requires computing layout (naive) of `core::option::Option<::It>`... //~| NOTE ...which again requires computing layout (naive) of `core::option::Option`, completing the cycle //~| NOTE cycle used when computing layout (naive) 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); }