]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/fn-returns-fn-pointer.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / fn-returns-fn-pointer.rs
1 // check-pass
2 // Regression test for #78507.
3 fn foo() -> Option<fn() -> Option<bool>> {
4     Some(|| Some(true))
5 }
6 fn main() {}