Poor diagnostic when passing T: Drop
(nonconst only) to a function that takes ~const Drop
in an inline const
#92713
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
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.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
F-const_trait_impl
`#![feature(const_trait_impl)]`
F-inline_const
Inline constants (aka: const blocks, const expressions, anonymous constants)
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:
Ideally, the output should be the same as when such a call is made in a
const
item:... which can be improved further with the suggestion given in #92712:
@rustbot modify labels: +A-const-eval +A-traits +D-confusing +D-terse +F-const_trait_impl +F-inline_const
The text was updated successfully, but these errors were encountered: