File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 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>(
629629 . params
630630 . iter ( )
631631 . filter_map ( |param| match param. kind {
632+ ty:: GenericParamDefKind :: Lifetime if param. name == kw:: UnderscoreLifetime => None ,
632633 ty:: GenericParamDefKind :: Lifetime => Some ( param. clean ( cx) ) ,
633634 ty:: GenericParamDefKind :: Type { synthetic, .. } => {
634635 if param. name == kw:: SelfUpper {
Original file line number Diff line number Diff line change 77{
88 unimplemented ! ( )
99}
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;
1111// @has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'fn repro<F>() where F: Fn(&str)'
1212// @!has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'for<'
1313pub 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