]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() {}