Skip to content

regression: no rules expected the token : #113236

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
[INFO] [stdout] error: no rules expected the token `:`
[INFO] [stdout]   --> src/main.rs:6:57
[INFO] [stdout]    |
[INFO] [stdout] 6  |             const MEM_SIZE: usize = count_expr!($($inits:expr),+);
[INFO] [stdout]    |                                                         ^ no rules expected this token in macro call
[INFO] [stdout] ...
[INFO] [stdout] 70 | macro_rules! count_expr {
[INFO] [stdout]    | ----------------------- when calling this macro
[INFO] [stdout] ...
[INFO] [stdout] 77 |     let fib = recurrence![a[n]: u64 = 0, 1; a[n-1] + a[n-2]];
[INFO] [stdout]    |               ---------------------------------------------- in this macro invocation
[INFO] [stdout]    |
[INFO] [stdout] note: while trying to match meta-variable `$e:expr`
[INFO] [stdout]   --> src/main.rs:72:6
[INFO] [stdout]    |
[INFO] [stdout] 72 |     ($e:expr) => (1);
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout]    = note: this error originates in the macro `recurrence` (in Nightly builds, run with -Z macro-backtrace for more info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions