From 6568336f54d91aceaf60733d97db6c1a162d35d6 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Wed, 2 Oct 2019 21:06:41 +0300 Subject: [PATCH] Reproduce parenthetical def bug --- tests/test_format.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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!(