]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_local/trait-vis.rs
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[rust.git] / tests / rustdoc / inline_local / trait-vis.rs
1 pub trait ThisTrait {}
2
3 mod asdf {
4     use ThisTrait;
5
6     pub struct SomeStruct;
7
8     impl ThisTrait for SomeStruct {}
9
10     trait PrivateTrait {}
11
12     impl PrivateTrait for SomeStruct {}
13 }
14
15 // @has trait_vis/struct.SomeStruct.html
16 // @has - '//h3[@class="code-header"]' 'impl ThisTrait for SomeStruct'
17 // @!has - '//h3[@class="code-header"]' 'impl PrivateTrait for SomeStruct'
18 pub use asdf::SomeStruct;