-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add E0034 error explanation #26398
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
Add E0034 error explanation #26398
Conversation
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
1000 ... 5 => ... | ||
} | ||
``` | ||
"##, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is quite a good question...
@@ -211,6 +211,47 @@ Reference: | |||
http://doc.rust-lang.org/reference.html#trait-objects | |||
"##, | |||
|
|||
E0034: r##" | |||
The compiler doesn't know what method to call because more than one does | |||
have the same prototype. Bad example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto about “Bad”.
@nagisa: Does my UFCS example seems good to you? |
Yes, its OK. |
Well, I guess we need to summon r+ now? ^^ |
@@ -211,6 +211,68 @@ Reference: | |||
http://doc.rust-lang.org/reference.html#trait-objects | |||
"##, | |||
|
|||
E0034: r##" | |||
The compiler doesn't know what method to call because more than one does | |||
have the same prototype. Example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/one does have/one method has
r=me with the small changes |
@nrc: I updated, thanks for your help ! |
Part of #24407.
cc @michaelsproul