Parse patterns with leading pipe properly in all places

This commit is contained in:
Chayim Refael Friedman 2024-10-31 15:32:37 +02:00
parent 86a850d49e
commit 210ead8454
6 changed files with 73 additions and 16 deletions

View file

@ -493,6 +493,10 @@ mod ok {
run_and_expect_no_errors("test_data/parser/inline/ok/record_field_list.rs");
}
#[test]
fn record_field_pat_leading_or() {
run_and_expect_no_errors("test_data/parser/inline/ok/record_field_pat_leading_or.rs");
}
#[test]
fn record_lit() { run_and_expect_no_errors("test_data/parser/inline/ok/record_lit.rs"); }
#[test]
fn record_literal_field_with_attr() {