You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #60944 - taiki-e:arbitrary_self_types-lifetime-elision, r=<try>
Allow lifetime elision in arbitrary_self_types
Currently, `self` except `&Self` and `&mut Self` is skipped. By this, other `self`s with lifetime is also ignored.
This PR changes it to only skip `Self`, `&Self` and `&mut Self`, and to handle other `self`s like normal arguments.
Closes#52675
help: you can add a constraint to the return type to make it last less than `'static` and match the anonymous lifetime #1 defined on the method body at 38:5
0 commit comments