-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-parserparser issuesparser issuesS-unactionableIssue requires feedback, design decisions or is blocked on other workIssue requires feedback, design decisions or is blocked on other work
Description
Syntax support for #![feature(inline_const)]
was added in #7010 (rust-analyzer/ungrammar#17).
However, r-a fails to parse the following code whereas rustc accepts it:
fn f() {
match () {
() => const { &["--release"] }[..],
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax Error: expected FAT_ARROW
}
}
rust-analyzer version: 0.3.1131-standalone (897a7ec 2022-07-17)
rustc version: rustc 1.64.0-nightly (f8588549c 2022-07-18)
Metadata
Metadata
Assignees
Labels
A-parserparser issuesparser issuesS-unactionableIssue requires feedback, design decisions or is blocked on other workIssue requires feedback, design decisions or is blocked on other work