diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-09-28 20:00:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-28 20:00:16 +0200 |
| commit | 48b5d110ae8b0917d09b71cdcfa6e5107a4fc224 (patch) | |
| tree | fa6719e53509e39ddd87795732f64600c5834ab8 /src/test/ui/methods | |
| parent | e601554dc0e2443a286cf529c1463b00d8e1fdde (diff) | |
| parent | 3d08ff1c19360e89a351184b9191454045059823 (diff) | |
| download | rust-48b5d110ae8b0917d09b71cdcfa6e5107a4fc224.tar.gz rust-48b5d110ae8b0917d09b71cdcfa6e5107a4fc224.zip | |
Rollup merge of #89255 - FabianWolff:issue-88806, r=cjgillot
Fix incorrect disambiguation suggestion for associated items Fixes #88806. I have not added a new test case, because the erroneous behavior is already present in existing test cases.
Diffstat (limited to 'src/test/ui/methods')
| -rw-r--r-- | src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr b/src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr index e0a58aed8f4..4ba778e0ef7 100644 --- a/src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr +++ b/src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr @@ -16,12 +16,12 @@ LL | fn foo() {} | ^^^^^^^^ help: disambiguate the associated function for candidate #1 | -LL | A::foo(); - | ~~~ +LL | <AB as A>::foo(); + | ~~~~~~~~~~~ help: disambiguate the associated function for candidate #2 | -LL | B::foo(); - | ~~~ +LL | <AB as B>::foo(); + | ~~~~~~~~~~~ error: aborting due to previous error |
