File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ fn clean_ty_generics<'tcx>(
629
629
. params
630
630
. iter ( )
631
631
. filter_map ( |param| match param. kind {
632
+ ty:: GenericParamDefKind :: Lifetime if param. name == kw:: UnderscoreLifetime => None ,
632
633
ty:: GenericParamDefKind :: Lifetime => Some ( param. clean ( cx) ) ,
633
634
ty:: GenericParamDefKind :: Type { synthetic, .. } => {
634
635
if param. name == kw:: SelfUpper {
Original file line number Diff line number Diff line change 7
7
{
8
8
unimplemented ! ( )
9
9
}
10
+
11
+ pub struct Extra ;
12
+
13
+ pub trait MyTrait < T > {
14
+ fn run ( ) { }
15
+ }
16
+
17
+ impl MyTrait < & Extra > for Extra { }
Original file line number Diff line number Diff line change @@ -11,3 +11,7 @@ extern crate issue_98697_reexport_with_anonymous_lifetime;
11
11
// @has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'fn repro<F>() where F: Fn(&str)'
12
12
// @!has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'for<'
13
13
pub use issue_98697_reexport_with_anonymous_lifetime:: repro;
14
+
15
+ // @has issue_98697/struct.Extra.html '//div[@id="trait-implementations-list"]//h3[@class="code-header in-band"]' 'impl MyTrait<&Extra> for Extra'
16
+ // @!has issue_98697/struct.Extra.html '//div[@id="trait-implementations-list"]//h3[@class="code-header in-band"]' 'impl<'
17
+ pub use issue_98697_reexport_with_anonymous_lifetime:: Extra ;
You can’t perform that action at this time.
0 commit comments