2022-07-30 00:37:48 -05:00
|
|
|
error[E0059]: type parameter to bare `Fn` trait must be a tuple
|
|
|
|
--> $DIR/E0059.rs:3:11
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) }
|
2022-07-30 00:37:48 -05:00
|
|
|
| ^^^^^^^ the trait `Tuple` is not implemented for `i32`
|
|
|
|
|
|
|
|
|
note: required by a bound in `Fn`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0059`.
|