Skip to content

Commit 95c984a

Browse files
Add test to prevent src link regression
1 parent 323fb71 commit 95c984a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
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)