os-rust/tests/ui/parser/fn-returns-fn-pointer.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
128 B
Rust
Raw Permalink Normal View History

2020-10-29 08:32:13 -07:00
//@ check-pass
// Regression test for #78507.
fn foo() -> Option<fn() -> Option<bool>> {
Some(|| Some(true))
}
fn main() {}