Skip to content

Commit 3560ff3

Browse files
authored
Rollup merge of #82040 - GuillaumeGomez:ensure-src-link, r=CraftSpider
Add test to prevent src link regression Fixes #80502. This PR is simply about adding a test to prevent a regression. cc `@bugadani` `@CraftSpider` r? `@camelid`
2 parents 4c8e38a + 95c984a commit 3560ff3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/rustdoc/ensure-src-link.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![crate_name = "foo"]
2+
3+
// This test ensures that the [src] link is present on traits items.
4+
5+
// @has foo/trait.Iterator.html '//h3[@id="method.zip"]/a[@class="srclink"]' "[src]"
6+
pub use std::iter::Iterator;

0 commit comments

Comments
 (0)