File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,18 @@ mod lifetimes {
4343 }
4444
4545 /// Like above.
46- fn foo2_pass < ' a , T : Trait < ' a , Assoc =( ) > + ' a > ( ) -> impl FooLike < Output =T :: Assoc > + ' a {
46+ ///
47+ /// FIXME(#51525) -- the shorter notation `T::Assoc` winds up referencing `'static` here
48+ fn foo2_pass < ' a , T : Trait < ' a , Assoc =( ) > + ' a > (
49+ ) -> impl FooLike < Output =<T as Trait < ' a > >:: Assoc > + ' a {
4750 Foo ( ( ) )
4851 }
4952
5053 /// Normalization to type containing bound region.
51- fn foo2_pass2 < ' a , T : Trait < ' a , Assoc =& ' a ( ) > + ' a > ( ) -> impl FooLike < Output =T :: Assoc > + ' a {
54+ ///
55+ /// FIXME(#51525) -- the shorter notation `T::Assoc` winds up referencing `'static` here
56+ fn foo2_pass2 < ' a , T : Trait < ' a , Assoc =& ' a ( ) > + ' a > (
57+ ) -> impl FooLike < Output =<T as Trait < ' a > >:: Assoc > + ' a {
5258 Foo ( & ( ) )
5359 }
5460}
You can’t perform that action at this time.
0 commit comments