mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
410 B
Plaintext
13 lines
410 B
Plaintext
error[E0059]: type parameter to bare `Fn` trait must be a tuple
|
|
--> $DIR/non-tupled-arg-mismatch.rs:3:9
|
|
|
|
|
LL | fn a<F: Fn<usize>>(f: F) {}
|
|
| ^^^^^^^^^ the trait `Tuple` is not implemented for `usize`
|
|
|
|
|
note: required by a bound in `Fn`
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0059`.
|