Skip to content

Unhelpful error for different impl method signature vs trait #3006

Closed
@jdm

Description

@jdm

error: method new_object has an incompatible type: () vs enum core::result::result

It took me a while to figure out that this was talking about the expected return type from the trait versus what the impl method was declaring. We should work the words trait and impl into that error somehow.

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions