Add test to prevent src link regression
This commit is contained in:
parent
323fb7113b
commit
95c984a4a3
1 changed files with 6 additions and 0 deletions
6
src/test/rustdoc/ensure-src-link.rs
Normal file
6
src/test/rustdoc/ensure-src-link.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
// This test ensures that the [src] link is present on traits items.
|
||||
|
||||
// @has foo/trait.Iterator.html '//h3[@id="method.zip"]/a[@class="srclink"]' "[src]"
|
||||
pub use std::iter::Iterator;
|
||||
Loading…
Add table
Add a link
Reference in a new issue