Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Oct 29, 2020
1 parent f9a2664 commit 9ae7130
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/parser/fn-returns-fn-pointer.rs
@@ -0,0 +1,6 @@
// check-pass
// Regression test for #78507.
fn foo() -> Option<fn() -> Option<bool>> {
Some(|| Some(true))
}
fn main() {}

0 comments on commit 9ae7130

Please sign in to comment.