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
127 B
Rust
Raw Normal View History

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