about summary refs log tree commit diff
path: root/tests/rustdoc/private/traits-in-bodies-private.rs
blob: a3455b3255b3242275ed9ac84a4e9ef8b90be7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// when implementing the fix for traits-in-bodies, there was an ICE when documenting private items
// and a trait was defined in non-module scope

//@ compile-flags:--document-private-items

//@ has traits_in_bodies_private/struct.SomeStruct.html
//@ !has - '//code' 'impl HiddenTrait for SomeStruct'
pub struct SomeStruct;

fn __implementation_details() {
    trait HiddenTrait {}
    impl HiddenTrait for SomeStruct {}
}