diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-12-03 22:19:18 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-12-11 17:42:28 -0800 |
| commit | 3980342f3164a62ba7036711c16cc8af20d06418 (patch) | |
| tree | 0b19205d68453d528709e30127eb3ccff3adec6b /src/test/ui/error-codes | |
| parent | 7dbfb0a8ca4ab74ee3111e57a024f9e6257ce37c (diff) | |
| download | rust-3980342f3164a62ba7036711c16cc8af20d06418.tar.gz rust-3980342f3164a62ba7036711c16cc8af20d06418.zip | |
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..30b44fd402b 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 |
