'Cannot find value in this scope' on macro expansion with generic over const impl
block inside.
#61574
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I kinda hoped that snippet below will be compiled:
Instead I got a bunch of errors like
for
SIZE
in every occurrence of{SIZE}
inside macro body, and onefor
SIZE
inimpl<T, const SIZE: usize>
.Playground permalink
Unlike snippet with "const variable" above, this one with "const value" compiles without any
issues:
This issue seems to be related to #58307.
Rustc version:
1.37.0-nightly (2019-06-04 5d8f59f4b1473217c2de)
.The text was updated successfully, but these errors were encountered: