Add test to prevent src link regression

This commit is contained in:
Guillaume Gomez 2021-02-12 20:27:57 +01:00
parent 323fb7113b
commit 95c984a4a3
1 changed files with 6 additions and 0 deletions

View 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;