• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
__implementation_details()10 fn __implementation_details() {
11     trait HiddenTrait {}
12     impl HiddenTrait for SomeStruct {}
13 }
14