${count(t,)}
is interpreted as ${count(t, 0)}
#111904
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:
Either:
${count(t,)}
is interpreted as${count(t)}
, the macro call is expanded to4
.Instead, this happened:
Compiled successfully,
${count(t,)}
is interpreted as${count(t, 0)}
, the macro call is expanded to2
.This form of
${count()}
metavar expression is not specified in RFC 3086, so this is more of an ask for clarification than a bug report.Meta
rustc --version --verbose
:cc #83527
@rustbot label requires-nightly F-macro-metavar-expr
The text was updated successfully, but these errors were encountered: