]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-43893.rs
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
[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 {}