Add test to prevent src link regression
This commit is contained in:
parent
323fb7113b
commit
95c984a4a3
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…
Reference in New Issue
Block a user