mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
13 lines
412 B
Plaintext
13 lines
412 B
Plaintext
error[E0059]: type parameter to bare `Fn` trait must be a tuple
|
|
--> $DIR/E0059.rs:3:11
|
|
|
|
|
LL | fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) }
|
|
| ^^^^^^^ the trait `Tuple` is not implemented for `i32`
|
|
|
|
|
note: required by a bound in `Fn`
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0059`.
|