]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-43893.rs
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor
[rust.git] / tests / 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 {}