Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in const_assert_ne! #44

Open
konsumlamm opened this issue Aug 20, 2021 · 0 comments
Open

Possible bug in const_assert_ne! #44

konsumlamm opened this issue Aug 20, 2021 · 0 comments

Comments

@konsumlamm
Copy link

const_assert_ne! supports 2 or more arguments. In the latter case, only the first argument is compared to every other argument, meaning that the arguments are not checked for pairwise inequality. For example, the following compiles:

const_assert_ne!(1, 2, 2);

The documentation suggests that all the arguments should be not equal to each other. If that's not the intended behaviour (and this is not a bug), the documentation should be updated to reflect that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant