${count()}
disregards depth parameter when captured repetition is empty
#111905
Labels
C-bug
Category: This is a bug.
F-macro_metavar_expr
`#![feature(macro_metavar_expr)]`
requires-nightly
This issue requires a nightly compiler in some way.
I tried this code:
I expected to see this happen: Fails to expand both macro calls, because the depth parameter (4294967296) is out of bounds for
$t
fragment in both macros.Instead, this happened: Compiled successfully, both macro calls expand to
0
.Meta
rustc --version --verbose
:cc #83527
@rustbot label requires-nightly F-macro-metavar-expr
The text was updated successfully, but these errors were encountered: