Skip to content

Mismatch between documentation and implementation of debug_assert_eq macro #30600

Closed
@est31

Description

@est31

The documentation for the debug_assert_eq macro claims:

Asserts that two expressions are equal to each other, testing equality in both directions.

But if you read the implementation of debug_assert_eq, you see that it tests equality in one direction only. Also see the example: http://is.gd/YGKAOj

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