diff --git a/tests/test_format.rs b/tests/test_format.rs index 2c5e816352..f28aced919 100644 --- a/tests/test_format.rs +++ b/tests/test_format.rs @@ -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!(