]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / elided-lifetime-in-path-in-impl-Fn.rs
1 // check-pass
2
3 struct Foo<'a>(&'a ());
4
5 fn with_fn() -> fn(Foo) {
6     |_| ()
7 }
8
9 fn with_impl_fn() -> impl Fn(Foo) {
10     |_| ()
11 }
12
13 fn with_where_fn<T>()
14 where
15     T: Fn(Foo),
16 {
17 }
18
19 fn main() {}