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).
The text was updated successfully, but these errors were encountered:
The object safety page says
However, it is not true that a receiver type of
Self
impliesSelf: Sized
.Accepting
self
-receiving methods as object-safe methods was a separate consideration from aSelf: Sized
bound in the RFC.The text was updated successfully, but these errors were encountered: