const_err does not trigger on associated constants #71282
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Both
FOO
andFoo::FOO
should triggerconst_err
errors.Instead, this happened: Only
FOO
was marked withconst_err
Meta
Checked on current stable (1.42) and nightly (2020-04-17) on the playground
The text was updated successfully, but these errors were encountered: