diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-20 12:17:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-20 12:17:20 +0100 |
| commit | f0eb4b4752424233e64b19ae242c052eaa65e1ce (patch) | |
| tree | 5c05ad84c8d17d0dc2e6000ec37a886647174095 /src/test/ui/error-codes | |
| parent | 57da9d32693e960f401003a206adfcc32364452c (diff) | |
| parent | 8c4f1d5f875e29e9a6e063744b71dc0a3c7deb6d (diff) | |
| download | rust-f0eb4b4752424233e64b19ae242c052eaa65e1ce.tar.gz rust-f0eb4b4752424233e64b19ae242c052eaa65e1ce.zip | |
Rollup merge of #67127 - estebank:disambiguate-suggestion, r=varkor
Use structured suggestion for disambiguating method calls Fix #65635.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0034.stderr | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0034.stderr b/src/test/ui/error-codes/E0034.stderr index a58d16bfafb..6db2ef5051d 100644 --- a/src/test/ui/error-codes/E0034.stderr +++ b/src/test/ui/error-codes/E0034.stderr @@ -9,13 +9,19 @@ note: candidate #1 is defined in an impl of the trait `Trait1` for the type `Tes | LL | fn foo() {} | ^^^^^^^^ - = help: to disambiguate the method call, write `Trait1::foo(...)` instead note: candidate #2 is defined in an impl of the trait `Trait2` for the type `Test` --> $DIR/E0034.rs:16:5 | LL | fn foo() {} | ^^^^^^^^ - = help: to disambiguate the method call, write `Trait2::foo(...)` instead +help: disambiguate the method call for candidate #1 + | +LL | Trait1::foo() + | ^^^^^^^^^^^ +help: disambiguate the method call for candidate #2 + | +LL | Trait2::foo() + | ^^^^^^^^^^^ error: aborting due to previous error |
