Skip to content

Commit 5406b63

Browse files
MahadMuhammadphilberty
authored andcommitted
gccrs: [E0034] Ambiguous Method Call Error
Ambiguous Method Call Error - more than one method has the same prototype gcc/rust/ChangeLog: * typecheck/rust-hir-path-probe.h: called error function Signed-off-by: Muhammad Mahad <[email protected]>
1 parent 28be497 commit 5406b63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcc/rust/typecheck/rust-hir-path-probe.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ class ReportMultipleCandidateError : private TypeCheckBase
164164
for (auto &c : candidates)
165165
r.add_range (c.locus);
166166

167-
rust_error_at (r, "multiple applicable items in scope for: %s",
167+
rust_error_at (r, ErrorCode ("E0034"),
168+
"multiple applicable items in scope for: %s",
168169
query.as_string ().c_str ());
169170
}
170171
};

0 commit comments

Comments
 (0)