mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 16:31:32 +00:00
20 lines
193 B
Rust
20 lines
193 B
Rust
//@ 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() {}
|