Skip to content

Missing derive macro suggests importing regular macro #88228

Closed
@m-ou-se

Description

@m-ou-se

Found while working on #88206

error: cannot find derive macro `println` in this scope
  --> src/main.rs:16:10
   |
16 | #[derive(println)]
   |          ^^^^^^^
   |
   = note: consider importing this macro:
           std::println

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.D-confusingDiagnostics: Confusing error or lint that should be reworked.D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.T-compilerRelevant to the compiler 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