]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-returns-fn-pointer.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / 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() {}