1 // compile-flags: -Znormalize-docs
3 #![feature(type_alias_impl_trait)]
9 struct DefaultAllocator;
11 // This unconstrained impl parameter causes the normalization of
12 // `<DefaultAllocator as Allocator>::Buffer` to be ambiguous,
13 // which caused an ICE with `-Znormalize-docs`.
14 impl<T> Allocator for DefaultAllocator {
18 type A = impl Fn(<DefaultAllocator as Allocator>::Buffer);