]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/hidden-trait-struct-impls.rs
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / rustdoc / hidden-trait-struct-impls.rs
1 #![crate_name = "foo"]
2
3 #[doc(hidden)]
4 pub trait Foo {}
5
6 trait Dark {}
7
8 pub trait Bam {}
9
10 pub struct Bar;
11
12 struct Hidden;
13
14 // @!has foo/struct.Bar.html '//*[@id="impl-Foo-for-Bar"]' 'impl Foo for Bar'
15 impl Foo for Bar {}
16 // @!has foo/struct.Bar.html '//*[@id="impl-Dark-for-Bar"]' 'impl Dark for Bar'
17 impl Dark for Bar {}
18 // @has foo/struct.Bar.html '//*[@id="impl-Bam-for-Bar"]' 'impl Bam for Bar'
19 // @has foo/trait.Bam.html '//*[@id="implementors-list"]' 'impl Bam for Bar'
20 impl Bam for Bar {}
21 // @!has foo/trait.Bam.html '//*[@id="implementors-list"]' 'impl Bam for Hidden'
22 impl Bam for Hidden {}