TAIT constrained by const
generates wrong #[define_opaque]
hint
#138902
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
Rationale and extra context
Applying
#[define_opaque]
to theconst
item does nothing (and emits another error), so it should not be suggested.Other cases
Rust Version
Anything else?
Godbolt link: https://godbolt.org/z/r1654KqG5
The text was updated successfully, but these errors were encountered: