Skip to content

Ord as an empty bound example #1341

Closed
@gokhanettin

Description

@gokhanettin

From Testcase: empty bounds

A consequence of how bounds work is that even if a trait doesn't include any functionality, you can still use it as a bound. Eq and Ord are examples of such traits from the std library.

Unlike std::cmp::Eq, std::cmp::Ord doesn't look like an empty bound in the doc. Is it a correct example for empty bounds?

If it is not, we can change with std::marker::Sync and std::marker::Send maybe?

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