blob: 1c18eb0fc4905bbf8c1a41c8acd8cb546cf48bab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|
LL | pub trait Fn<Args: Tuple>: FnMut<Args> {
| ^^^^^ required by this bound in `Fn`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0059`.
|