We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
A manual implementation of a trait for its own DST is currently legal:
trait Foo { fn gen<A>(&self) {} } impl<'a> Foo for Foo+'a {} fn main() {}
but shouldn't be. An object-safe Foo gives an ICE #20939, but should also be plain illegal.
Foo
The text was updated successfully, but these errors were encountered:
I actually think that a manual impl for a _non-_object-safe trait is ok. It's the object-safe case that should give a better failure.
Sorry, something went wrong.
(The fix is presumably to modify coherence to be less focused on impls.)
Closing in favour of #20939 then.
No branches or pull requests
A manual implementation of a trait for its own DST is currently legal:
but shouldn't be. An object-safe
Foo
gives an ICE #20939, but should also be plain illegal.The text was updated successfully, but these errors were encountered: