summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/associated-const-ambiguity-report.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-consts/associated-const-ambiguity-report.stderr')
-rw-r--r--tests/ui/associated-consts/associated-const-ambiguity-report.stderr8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ui/associated-consts/associated-const-ambiguity-report.stderr b/tests/ui/associated-consts/associated-const-ambiguity-report.stderr
index 5435f2232..e39224f2c 100644
--- a/tests/ui/associated-consts/associated-const-ambiguity-report.stderr
+++ b/tests/ui/associated-consts/associated-const-ambiguity-report.stderr
@@ -14,14 +14,12 @@ note: candidate #2 is defined in an impl of the trait `Bar` for the type `i32`
|
LL | const ID: i32 = 3;
| ^^^^^^^^^^^^^
-help: disambiguate the associated constant for candidate #1
- |
-LL | const X: i32 = <i32 as Foo>::ID;
- | ~~~~~~~~~~~~~~
-help: disambiguate the associated constant for candidate #2
+help: use fully-qualified syntax to disambiguate
|
LL | const X: i32 = <i32 as Bar>::ID;
| ~~~~~~~~~~~~~~
+LL | const X: i32 = <i32 as Foo>::ID;
+ | ~~~~~~~~~~~~~~
error: aborting due to previous error