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
// Minimal example; it also can be demonstrated with bounds that// require `Sized`, like `<G: From<Self>>` say, even without a// function bodytraitTrait{// Fails without an explicit `where Self: Sized` boundfnmethod(self){}}
This is why all methods that require Self:Sized are exempt from the typical rules. This is also why by-value self methods are permitted, since currently one cannot invoke pass an unsized type by-value (though we consider that a useful future extension).
Activity
ehuss commentedon Jan 1, 2024
Thanks for the report! I believe this is a duplicate of #1247, so closing in favor of that.