// compile-flags: -Znormalize-docs #![feature(type_alias_impl_trait)] trait Allocator { type Buffer; } struct DefaultAllocator; // This unconstrained impl parameter causes the normalization of // `::Buffer` to be ambiguous, // which caused an ICE with `-Znormalize-docs`. impl Allocator for DefaultAllocator { type Buffer = (); } type A = impl Fn(::Buffer); fn foo() -> A { |_| () } fn main() {}