1 error[E0792]: expected generic type parameter, found `&F`
2 --> $DIR/issue-99073.rs:6:11
4 LL | fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
5 | - this generic parameter must be used with a generic type parameter
6 LL | move || f(fix(&f))
9 error: concrete type differs from previous defining opaque type use
10 --> $DIR/issue-99073.rs:6:13
12 LL | move || f(fix(&f))
13 | ^^^^^^^ expected `{closure@$DIR/issue-99073.rs:6:3: 6:10}`, got `G`
15 note: previous use here
16 --> $DIR/issue-99073.rs:5:36
18 LL | fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0792`.