Skip to content

Better error when types differ only by their boxiness #561

Closed
@brson

Description

@brson

Instead of having to figure out what is meant by error: mismatched types: expected block but found @rec(rec(vec[@stmt] stmts,<tag#1:926>[@expr] expr,node_id id) node,span span) (types differ) rustc should just tell me that I don't need the box, maybe by using a span_note.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions