]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-43893.rs
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
[rust.git] / src / test / rustdoc / issue-43893.rs
1 // ignore-cross-compile
2
3 #![crate_name = "foo"]
4
5 pub trait SomeTrait {}
6 pub struct SomeStruct;
7
8 // @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#9'
9 impl SomeTrait for usize {}
10
11 // @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#12-14'
12 impl SomeTrait for SomeStruct {
13     // deliberately multi-line impl
14 }
15
16 pub trait AnotherTrait {}
17
18 // @has foo/trait.AnotherTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#19'
19 impl<T> AnotherTrait for T {}