-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Allow dyn trait + Sized #79701
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
Comments
|
Oh right. |
With rust-lang/rfcs#2027 accepted the requirement It makes very much sense to support |
I see, that makes sense, yeah. |
I would expect this code to work:
I realize that trait objects don't work with multiple traits because of complications with multiple vtables.
Sized
is also technically not an auto trait, but for all intends and purposes here (no methods in Sized - no vtables) it should be equivalent toSend
orSync
or whatever.A somewhat more realistic example:
The text was updated successfully, but these errors were encountered: