4 // This tests the allocating algo branch of the
5 // inherent impls overlap checker.
6 // This branch was added by PR:
7 // https://github.com/rust-lang/rust/pull/78317
8 // In this test, we repeat many impl blocks
9 // to trigger the allocating branch.
15 // Simple case where each impl block is distinct
19 repeat::repeat_with_idents!(impl Foo { fn IDENT() {} });
21 // There are overlapping impl blocks but due to generics,
29 repeat::repeat_with_idents!(impl Bar<A> { fn IDENT() {} });
31 impl Bar<A> { fn foo() {} }
32 impl Bar<B> { fn foo() {} }
34 // Regression test for issue #89820: