rust/tests/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs

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

20 lines
192 B
Rust
Raw Normal View History

// check-pass
struct Foo<'a>(&'a ());
fn with_fn() -> fn(Foo) {
|_| ()
}
fn with_impl_fn() -> impl Fn(Foo) {
|_| ()
}
fn with_where_fn<T>()
where
T: Fn(Foo),
{
}
fn main() {}