Skip to content

Commit acef039

Browse files
committed
rustdoc: Remove cruft from the test
per @GuillaumeGomez's sample, but with one change.
1 parent 67c9af5 commit acef039

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/test/rustdoc/issue-43893.rs

+4-14
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,12 @@
1313
#![crate_name = "foo"]
1414

1515
pub trait SomeTrait {}
16-
1716
pub struct SomeStruct;
1817

19-
//
20-
21-
// dummy
22-
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#23-26'
23-
impl SomeTrait for usize {
18+
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#19'
19+
impl SomeTrait for usize {}
2420

25-
26-
}
27-
28-
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#29-32'
21+
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#22-24'
2922
impl SomeTrait for SomeStruct {
30-
31-
23+
// deliberately multi-line impl
3224
}
33-
34-
// some trailer

0 commit comments

Comments
 (0)