From af11ff39c89042e1c4902bc7b94cd68003e51df6 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Thu, 15 Sep 2022 00:46:13 +0100 Subject: [PATCH] parser: add test for static closures returning by ref --- trunk_parser/src/parser/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/trunk_parser/src/parser/mod.rs b/trunk_parser/src/parser/mod.rs index 358b6f6..f20f9ad 100644 --- a/trunk_parser/src/parser/mod.rs +++ b/trunk_parser/src/parser/mod.rs @@ -3901,6 +3901,20 @@ mod tests { ]); } + #[test] + fn static_closures_returning_by_ref() { + assert_ast("