-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add suggestion to multiple applicable items in scope error #51046
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
seems like an easy win to me! |
funny, I just used this open issue to understand how to solve this error. Please add the above suggestion of calling the trait. It's extremely helpful. |
This looks like the same issue as #40471. |
iluuu1994
added a commit
to iluuu1994/rust
that referenced
this issue
Jul 24, 2019
Centril
added a commit
to Centril/rust
that referenced
this issue
Jul 24, 2019
…isambiguation, r=estebank Add method disambiguation help for trait implementation Closes rust-lang#51046 Closes rust-lang#40471
Centril
added a commit
to Centril/rust
that referenced
this issue
Jul 25, 2019
…isambiguation, r=estebank Add method disambiguation help for trait implementation Closes rust-lang#51046 Closes rust-lang#40471
Centril
added a commit
to Centril/rust
that referenced
this issue
Jul 25, 2019
…isambiguation, r=estebank Add method disambiguation help for trait implementation Closes rust-lang#51046 Closes rust-lang#40471
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When your type implements two traits with the same fn signatures, there's an ambiguity that can be solved by calling
Trait::function(instance_of_type)
. The error is perfect but could add that as suggestion.For instance ...
Could say ...
Suggestion: use Idx::index(vid) or Atom::index(vid)
The text was updated successfully, but these errors were encountered: