mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 01:40:02 +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`
|
|
}
|