Support _
for const inference with const generics
#80528
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently, users may specify
_
in place of a type: the compiler will then suggest the intended type. This ought to work for consts too, but currently does not (see #79557).The difficulty is that the intended use of
_
(as either a type or const) is ambiguous until type checking, so runs into the same problems as #66615 and #77773.The text was updated successfully, but these errors were encountered: