Fix format for the 'as' keyword

This commit is contained in:
JRI98 2023-12-07 10:40:40 +00:00 committed by ptaszor3
parent 9faf8f5d9b
commit 3a86f5de22
No known key found for this signature in database
GPG key ID: 083F32091F5D7CEE
2 changed files with 46 additions and 6 deletions

View file

@ -6003,6 +6003,33 @@ mod test_fmt {
);
}
#[test]
fn issue_6197() {
expr_formats_to(
indoc!(
r#"
when l1 is
[
..
as
rest
]
as
l2
->
f rest
"#
),
indoc!(
r#"
when l1 is
[.. as rest] as l2 ->
f rest
"#
),
);
}
// this is a parse error atm
// #[test]
// fn multiline_apply() {