-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 suggestion to multiple applicable items in scope error #51046
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
spastorino
added
the
A-diagnostics
Area: Messages for errors, warnings, and lints
label
May 24, 2018
nikomatsakis
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
May 24, 2018
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. |
XAMPPRocky
added
the
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
label
Oct 2, 2018
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: