Skip to content

Suggest removing self import when not in a list #63741

Closed
@varkor

Description

@varkor
use std::self; // error[E0429]: `self` imports are only allowed within a { } list

we should offer the suggestion to remove ::self, as this is likely what the user intended.

This issue has been assigned to @mibac138 via this comment.

Metadata

Metadata

Assignees

Labels

A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions