diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-09-25 21:47:33 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-09-25 21:47:33 +0200 |
| commit | 3d08ff1c19360e89a351184b9191454045059823 (patch) | |
| tree | 24c3ddd7804ccebdb4f38234247ad48857c60ba8 /src/test/ui/error-codes | |
| parent | a0648eab3686f100c7ab9b0d38472c740079cce4 (diff) | |
| download | rust-3d08ff1c19360e89a351184b9191454045059823.tar.gz rust-3d08ff1c19360e89a351184b9191454045059823.zip | |
Fix incorrect disambiguation suggestion for associated items
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0034.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0034.stderr b/src/test/ui/error-codes/E0034.stderr index 83718a1e273..e2962170265 100644 --- a/src/test/ui/error-codes/E0034.stderr +++ b/src/test/ui/error-codes/E0034.stderr @@ -16,12 +16,12 @@ LL | fn foo() {} | ^^^^^^^^ help: disambiguate the associated function for candidate #1 | -LL | Trait1::foo() - | ~~~~~~~~ +LL | <Test as Trait1>::foo() + | ~~~~~~~~~~~~~~~~~~ help: disambiguate the associated function for candidate #2 | -LL | Trait2::foo() - | ~~~~~~~~ +LL | <Test as Trait2>::foo() + | ~~~~~~~~~~~~~~~~~~ error: aborting due to previous error |
