Skip to content

Error message when a non-pure function is used as a constraint could be clearer #1883

Closed
@bzbarsky

Description

@bzbarsky

Testcase:

  fn foo() -> bool { true }
  fn bar() : foo() {}

I get this error message: "error: Non-predicate in constraint: foo"

It would be nice if it just said something like "foo is not a pure function" instead.

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