summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs
blob: 9c9965d8fb8b534eb97b70aa2405eba4bd710f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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() {}