Skip to content

"type parameter A is unused" span in type Foo<A> = u8; should point to A #30236

Closed
@huonw

Description

@huonw

It currently points to the RHS of the type.

type Foo<A> = u8;

fn main() {}
<anon>:1:15: 1:17 error: type parameter `A` is unused [E0091]
<anon>:1 type Foo<A> = u8;
                       ^~

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