]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/traits-in-bodies-private.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / rustdoc / traits-in-bodies-private.rs
1 // when implementing the fix for traits-in-bodies, there was an ICE when documenting private items
2 // and a trait was defined in non-module scope
3
4 // compile-flags:--document-private-items
5
6 // @has traits_in_bodies_private/struct.SomeStruct.html
7 // @!has - '//code' 'impl HiddenTrait for SomeStruct'
8 pub struct SomeStruct;
9
10 fn __implementation_details() {
11     trait HiddenTrait {}
12     impl HiddenTrait for SomeStruct {}
13 }