rustdoc: Remove cruft from the test

per @GuillaumeGomez's sample, but with one change.
This commit is contained in:
Vitaly _Vi Shukela 2017-10-02 16:54:35 +03:00
parent 67c9af590d
commit acef039de8
No known key found for this signature in database
GPG Key ID: C097221D6E03DF68

View File

@ -13,22 +13,12 @@
#![crate_name = "foo"]
pub trait SomeTrait {}
pub struct SomeStruct;
//
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#19'
impl SomeTrait for usize {}
// dummy
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#23-26'
impl SomeTrait for usize {
}
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#29-32'
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#22-24'
impl SomeTrait for SomeStruct {
// deliberately multi-line impl
}
// some trailer