-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer
is not usable as a trait object
#18530
Comments
cc @aturon |
Indeed, this seems to've been missed in the original rollout. As usual, this will actually make the default methods more widely usable. We need to develop a convention around these extra blanket extension traits. |
Is it actually unsafe to use Self in the return type? |
@taralx It wouldn't make sense from the perspective of the caller. The caller cannot see the concrete type that makes the return value up ( |
This has now been addressed. |
As a side effect of #17704 (and I think @huonw has noted this possibility correctly),
std::io::Buffer
is no longer usable as a trait object. We need a separate trait and a blacket implementation for it.The text was updated successfully, but these errors were encountered: