Merge branch 'main' into new-builder-syntax

This commit is contained in:
Sam Mohr 2024-07-07 18:33:36 -07:00 committed by GitHub
commit 618b713ecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
70 changed files with 1654 additions and 256 deletions

View file

@ -6205,6 +6205,31 @@ mod test_fmt {
);
}
#[test]
fn issue_6215() {
expr_formats_to(
indoc!(
r"
when list is
[first as last]
| [first, last] ->
first
_->Not
"
),
indoc!(
r"
when list is
[first as last]
| [first, last] ->
first
_ -> Not
"
),
);
}
// this is a parse error atm
// #[test]
// fn multiline_apply() {