nightly: false positive 'dead_code' warning when using trait for the supertrait bounds #121040
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
no warning (like in stable)
Rationale and extra context
For the given code, the rust compiler emits a
dead_code
warning in nightly, but not in stable.Usually the trait was supposed to be used for multiple modules to ensure
Send
on certain types. For the sake of simplicity, I put it in the same file. But the issue is also visible across different files.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: