summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0059.stderr
blob: a7591d2b04befe1a685450e84c762434fe406a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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`.