rust/tests/ui/impl-trait/issue-99073.stderr
2025-04-03 11:13:10 +02:00

12 lines
387 B
Plaintext

error[E0792]: expected generic type parameter, found `&F`
--> $DIR/issue-99073.rs:6:13
|
LL | fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
| - this generic parameter must be used with a generic type parameter
LL | move || f(fix(&f))
| ^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0792`.