Skip to content

when a trait bound can't be fulfilled the compiler should tell you why #11049

Closed
@metajack

Description

@metajack

If you call some function with a trait bound (or trigger it some other way like capturing in a closure), the compiler will yell that some type doesn't fulfill the bound. It won't tell you what in that type is failing the bound, and in the case of non-trival structures this makes it extremely frustrating to figure out what's wrong.

Case in point: can you tell me why ScriptMsg isn't send here? https://github.com/mozilla/servo/blob/master/src/components/script/script_task.rs#L57-L78

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions