E0277 reports const Drop
bounds as Drop
bounds
#92712
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-system
Area: Trait system
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
F-const_trait_impl
`#![feature(const_trait_impl)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
The diagnostic claims that
UnconstDrop
doesn't implementDrop
, but it does. The issue is thatf
's argument has a~const Drop
bound,UnconstDrop
does not implementconst Drop
, and the call tof
was made in a const context.Ideally the output should look something like this:
@rustbot modify labels: +A-traits +D-confusing +F-const_trait_impl
The text was updated successfully, but these errors were encountered: