Skip to content

E0131 should say lifetime parameters when there's a lifetime #51022

Closed
@Havvy

Description

@Havvy
error[E0131]: main function is not allowed to have type parameters
 --> src/main.rs:1:8
  |
1 | fn main<'a> () {}
  |        ^^^^ main cannot have type parameters

The error says type parameters when it should say lifetime parameters in this case.

This is definitely a low priority issue. Might make a good first issue though?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions