-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Operator overloading only considers the method name, not which trait is implemented #12402
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 dear that's bad, nominating. |
Even though we only use the lang item as a potential trait for overloadable expressions, It doesn't seem hard to duplicate the functionality of |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 25, 2022
minor: Freshen up goto feature docs Fixes rust-lang/rust-analyzer#2541
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Mar 7, 2024
Pointers cannot be converted to integers at compile time Fix rust-lang#12402 changelog: [`transmutes_expressible_as_ptr_casts`]: do not suggest invalid const casts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently this code compiles, but it shouldn't:
The text was updated successfully, but these errors were encountered: