2018-08-28 11:33:45 -05:00
|
|
|
// 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
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has traits_in_bodies_private/struct.SomeStruct.html
|
|
|
|
//@ !has - '//code' 'impl HiddenTrait for SomeStruct'
|
2018-08-28 11:33:45 -05:00
|
|
|
pub struct SomeStruct;
|
|
|
|
|
|
|
|
fn __implementation_details() {
|
|
|
|
trait HiddenTrait {}
|
|
|
|
impl HiddenTrait for SomeStruct {}
|
|
|
|
}
|