Skip to content

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

Closed
wants to merge 2 commits into from

Conversation

GuillaumeGomez
Copy link
Member

Part of #24407.
cc @michaelsproul

@rust-highfive
Copy link
Contributor

r? @nrc

(rust_highfive has picked a reviewer for you, use r? to override)

1000 ... 5 => ...
}
```
"##,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed?

Copy link
Member Author

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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto about “Bad”.

@GuillaumeGomez
Copy link
Member Author

@nagisa: Does my UFCS example seems good to you?

@nagisa
Copy link
Member

nagisa commented Jun 18, 2015

Yes, its OK.

@GuillaumeGomez
Copy link
Member Author

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:
Copy link
Member

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

@nrc
Copy link
Member

nrc commented Jun 19, 2015

r=me with the small changes

@GuillaumeGomez
Copy link
Member Author

@nrc: I updated, thanks for your help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants