fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: expected a `Fn<(<_ as ATC<'a>>::Type,)>` closure, found `F` 2 --> $DIR/issue-62529-3.rs:25:14 3 | 4LL | call(f, ()); 5 | ---- ^ expected an `Fn<(<_ as ATC<'a>>::Type,)>` closure, found `F` 6 | | 7 | required by a bound introduced by this call 8 | 9 = note: expected a closure with arguments `((),)` 10 found a closure with arguments `(<_ as ATC<'a>>::Type,)` 11note: this is a known limitation of the trait solver that will be lifted in the future 12 --> $DIR/issue-62529-3.rs:25:14 13 | 14LL | call(f, ()); 15 | -----^----- 16 | | | 17 | | the trait solver is unable to infer the generic types that should be inferred from this argument 18 | add turbofish arguments to this call to specify the types manually, even if it's redundant 19note: required by a bound in `call` 20 --> $DIR/issue-62529-3.rs:9:36 21 | 22LL | fn call<'b, T: for<'a> ATC<'a>, F: for<'a> Fn(<T as ATC<'a>>::Type)>( 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `call` 24 25error: aborting due to previous error 26 27For more information about this error, try `rustc --explain E0277`.