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 Normal View History

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