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 05:37:48 +00:00
error[E0059]: type parameter to bare `Fn` trait must be a tuple
--> $DIR/E0059.rs:3:11
2018-02-08 03:35:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) }
2022-07-30 05:37:48 +00: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-08 03:35:35 +00:00
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0059`.