]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/masked.rs
Rollup merge of #100509 - BoxyUwU:merge_hrtb_with_higher_rank_trait_bound, r=compiler...
[rust.git] / src / test / rustdoc / masked.rs
1 // aux-build:masked.rs
2
3 #![feature(doc_masked)]
4
5 #![crate_name = "foo"]
6
7 #[doc(masked)]
8 extern crate masked;
9
10 // @!hasraw 'search-index.js' 'masked_method'
11
12 // @!hasraw 'foo/struct.String.html' 'MaskedTrait'
13 // @!hasraw 'foo/struct.String.html' 'masked_method'
14 pub use std::string::String;
15
16 // @!hasraw 'foo/trait.Clone.html' 'MaskedStruct'
17 pub use std::clone::Clone;
18
19 // @!hasraw 'foo/struct.MyStruct.html' 'MaskedTrait'
20 // @!hasraw 'foo/struct.MyStruct.html' 'masked_method'
21 pub struct MyStruct;
22
23 impl masked::MaskedTrait for MyStruct {
24     fn masked_method() {}
25 }
26
27 // @!hasraw 'foo/trait.MyTrait.html' 'MaskedStruct'
28 pub trait MyTrait {}
29
30 impl MyTrait for masked::MaskedStruct {}