rust/tests/ui/parser/fn-returns-fn-pointer.rs
2024-02-16 20:02:50 +00:00

7 lines
128 B
Rust

//@ check-pass
// Regression test for #78507.
fn foo() -> Option<fn() -> Option<bool>> {
Some(|| Some(true))
}
fn main() {}