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 {
43
43
}
44
44
45
45
/// 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 {
47
50
Foo ( ( ) )
48
51
}
49
52
50
53
/// 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 {
52
58
Foo ( & ( ) )
53
59
}
54
60
}
You can’t perform that action at this time.
0 commit comments