rust/tests/ui/error-codes/E0059.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
410 B
Plaintext
Raw Normal View History

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`.