From 9ae713057aa79c7f582bd9f7e6aac0032b6e2ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Thu, 29 Oct 2020 08:32:13 -0700 Subject: [PATCH] Add regression test --- src/test/ui/parser/fn-returns-fn-pointer.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/test/ui/parser/fn-returns-fn-pointer.rs diff --git a/src/test/ui/parser/fn-returns-fn-pointer.rs b/src/test/ui/parser/fn-returns-fn-pointer.rs new file mode 100644 index 0000000000000..15590e324861c --- /dev/null +++ b/src/test/ui/parser/fn-returns-fn-pointer.rs @@ -0,0 +1,6 @@ +// check-pass +// Regression test for #78507. +fn foo() -> Option Option> { + Some(|| Some(true)) +} +fn main() {}