diff options
| author | bors <bors@rust-lang.org> | 2021-10-13 16:42:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-13 16:42:53 +0000 |
| commit | eeb16a2a892c2a29b1da3085e29f39efa3486e1c (patch) | |
| tree | 857bc9e04bee087d242414e2b44f33cf38a4d52e /src/test | |
| parent | 81117ff930fbf3792b4f9504e3c6bccc87b10823 (diff) | |
| parent | 8aaf4ab59aacdc910ea132dbb13a67c8d69a1607 (diff) | |
| download | rust-eeb16a2a892c2a29b1da3085e29f39efa3486e1c.tar.gz rust-eeb16a2a892c2a29b1da3085e29f39efa3486e1c.zip | |
Auto merge of #89822 - tmiasko:overflap-duplicates, r=cjgillot
Deduplicate regions ids before merging them The merging code does not expect to see any duplicates. Fixes #89820. r? `@cjgillot`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/inherent-impls-overlap-check/no-overlap.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/inherent-impls-overlap-check/no-overlap.rs b/src/test/ui/inherent-impls-overlap-check/no-overlap.rs index 341bfc7b605..450e6d4202c 100644 --- a/src/test/ui/inherent-impls-overlap-check/no-overlap.rs +++ b/src/test/ui/inherent-impls-overlap-check/no-overlap.rs @@ -31,4 +31,23 @@ repeat::repeat_with_idents!(impl Bar<A> { fn IDENT() {} }); impl Bar<A> { fn foo() {} } impl Bar<B> { fn foo() {} } +// Regression test for issue #89820: + +impl Bar<u8> { + pub fn a() {} + pub fn aa() {} +} + +impl Bar<u16> { + pub fn b() {} + pub fn bb() {} +} + +impl Bar<u32> { + pub fn a() {} + pub fn aa() {} + pub fn bb() {} + pub fn b() {} +} + fn main() {} |
