<p dir="auto">For <a href="https://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html" rel="nofollow">https://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html</a> :</p>
<table role="table">
<thead>
<tr>
<th>Anchor</th>
<th>Lines</th>
</tr>
</thead>
<tbody>
<tr>
<td>method.extend</td>
<td>740, 741</td>
</tr>
<tr>
<td>assoc_type.IntoIter</td>
<td>731, 734, 737</td>
</tr>
<tr>
<td>assoc_type.Item</td>
<td>730, 733, 736</td>
</tr>
<tr>
<td>method.into_iter</td>
<td>732, 735, 738</td>
</tr>
<tr>
<td>examples</td>
<td>85, 218, 229, 243, 273, 296, 315, 330, 354, 382, 410, 439, 476, 509, 528, 549, 585, 608, 631, 654, 678, 708</td>
</tr>
</tbody>
</table>
<p dir="auto">When two items in the same documentation page have the same name, rustdoc generates duplicate HTML <code class="notranslate">id</code> attributes for them. This makes the HTML invalid, but more importantly, it makes it impossible to link to anything but the one that shows up first in the source.</p>
<p dir="auto">For example, <a href="http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html" rel="nofollow"><code class="notranslate">Vec</code>'s page</a> contains multiple impls of <code class="notranslate">IntoIterator</code>, and therefore multiple HTML elements that have an <code class="notranslate">id</code> attribute of <code class="notranslate">assoc_type.Item</code>, <code class="notranslate">assoc_type.IntoIter</code>, and <code class="notranslate">method.into_iter</code>.</p>
<p dir="auto">This is not limited to impls of the same trait, as different traits (and inherent impls) could define methods or associated types with the same name.</p>