1 // compile-flags: --document-private-items --document-hidden-items
3 // This is a regression test for #98009.
5 // @has "$.index[*][?(@.name=='this_compiles')]"
6 // @has "$.index[*][?(@.name=='this_does_not')]"
7 // @has "$.index[*][?(@.name=='Events')]"
8 // @has "$.index[*][?(@.name=='Other')]"
9 // @has "$.index[*][?(@.name=='Trait')]"
16 fn handle(value: T) -> Self;
19 impl<T, U> Trait<U> for T where T: From<U> {
20 fn handle(_: U) -> Self { unimplemented!() }
23 impl<'a, R> Trait<&'a mut Events<R>> for Other {
24 fn handle(_: &'a mut Events<R>) -> Self { unimplemented!() }
27 fn this_compiles<'a, R>(value: &'a mut Events<R>) {
29 Other::handle(&mut *value);
33 fn this_does_not<'a, R>(value: &'a mut Events<R>) {