rust/tests/ui/impl-trait/issue-51185.rs

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

9 lines
132 B
Rust
Raw Normal View History

//@ run-pass
fn foo() -> impl Into<for<'a> fn(&'a ())> {
(|_| {}) as for<'a> fn(&'a ())
}
fn main() {
foo().into()(&());
}