mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
9 lines
176 B
Rust
9 lines
176 B
Rust
fn main() {
|
|
let _ = fix(|_: &dyn Fn()| {});
|
|
}
|
|
|
|
fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
|
|
move || f(fix(&f))
|
|
//~^ ERROR expected generic type parameter, found `&F`
|
|
}
|