-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Disallow the use of Drop
as a bound
#20151
Comments
Why should |
|
This should probably live in rust-lang/rfcs, btw. |
We don’t have a strict set of rules about when to put issues in the RFCs repo, so I wasn’t sure about where to put this issue. It’s a pretty minor thing, though—no code should be using |
I can't think of a reason you'd want it as a bound but I don't see why that means it shouldn't be legal. I can't think of a reason you'd use StrPrelude as a bound either, but it's still not disallowed. It would be better to go in the other direction and make |
But we might want to allow |
There's nothing stopping people from writing a new trait called |
These days, a change like this would require an RFC. @P1start if you still feel strongly about this, please file one! |
It’s pretty useless to do so, and we might find a use for it post-1.0 for something like
&out
/&uninit
that can’t be dropped.The text was updated successfully, but these errors were encountered: