]> git.proxmox.com Git - rustc.git/blob - tests/ui/impl-trait/issue-99073.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / impl-trait / issue-99073.stderr
1 error[E0792]: expected generic type parameter, found `&F`
2 --> $DIR/issue-99073.rs:6:11
3 |
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))
7 | ^^^^^^^^^^
8
9 error: concrete type differs from previous defining opaque type use
10 --> $DIR/issue-99073.rs:6:13
11 |
12 LL | move || f(fix(&f))
13 | ^^^^^^^ expected `{closure@$DIR/issue-99073.rs:6:3: 6:10}`, got `G`
14 |
15 note: previous use here
16 --> $DIR/issue-99073.rs:5:36
17 |
18 LL | fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
19 | ^^^^^^^^^
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0792`.