rust/tests/ui/impl-trait/issue-99073.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
387 B
Plaintext
Raw Permalink Normal View History

error[E0792]: expected generic type parameter, found `&F`
2025-04-01 21:48:41 +00:00
--> $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))
2025-04-01 21:48:41 +00:00
| ^^^^^^^
2025-04-01 21:48:41 +00:00
error: aborting due to 1 previous error
2023-07-21 10:27:41 +00:00
For more information about this error, try `rustc --explain E0792`.