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

feat: must_use on trait/implementation #6964

Open
1 of 2 tasks
gaetbout opened this issue Jan 2, 2025 · 0 comments
Open
1 of 2 tasks

feat: must_use on trait/implementation #6964

gaetbout opened this issue Jan 2, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@gaetbout
Copy link
Contributor

gaetbout commented Jan 2, 2025

Feature Request

Describe the Feature Request

When I put a #[must_use] on a function when defining a trait, it should trigger a warning if the implementation of that trait doesn't also put #[must_use] on the function.

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

  • Yes
  • No
@gaetbout gaetbout added the enhancement New feature or request label Jan 2, 2025
@gaetbout gaetbout changed the title feat: must_use feat: must_use on trait/implementation Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant