-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ICE when using a trait with an associated type as a trait object #19121
Comments
The best thing to do here is to use |
My reading of the RFC is that it should be a compile error to use |
#17732 is very similar, but not quite a dup, the error message here is |
Yes in general. I think it's fine to allow you to leave it off if there's a default. |
I agree it should be a compile-time error to have an object type for which the values of some associated types are not specified (whether explicitly or via default). However, we have to be careful, because there can be a default that references |
The ICE is fixed by #19391 |
The text was updated successfully, but these errors were encountered: