Update the comment in the add_typo_suggestion function

This commit is contained in:
reddevilmidzy 2025-12-01 21:49:40 +09:00
parent cc3eee7fbe
commit 31106eb752

View file

@ -1900,7 +1900,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
if span.overlaps(def_span) {
// Don't suggest typo suggestion for itself like in the following:
// error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
// --> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
// --> $DIR/unicode-string-literal-syntax-error-64792.rs:4:14
// |
// LL | struct X {}
// | ----------- `X` defined here