Reproduce parenthetical def bug

This commit is contained in:
Richard Feldman 2019-10-02 21:06:41 +03:00
parent c61b11e88f
commit 6568336f54

View file

@ -126,6 +126,18 @@ mod test_format {
));
}
#[test]
fn parenthetical_def() {
assert_formats_same(indoc!(
r#"
(UserId userId) = 5
y = 10
42
"#
));
}
#[test]
fn record_destructuring() {
assert_formats_same(indoc!(