No way to get compile-time info from the type of local. #88531
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This doesn't work. There's no way to express here that the value of
x
is entirely irrelevant, and thatbla
only cares about the type of the argument.If we had a magic
PhantomData::of(x)
that would work in const contexts regardless of whetherx
itself is const, we could do things like this:The text was updated successfully, but these errors were encountered: