Skip to content

error[E0283]: type annotations needed for &O #1740

Closed Answered by sdroege
Wanpaku asked this question in Q&A
Discussion options

You must be logged in to vote

The error will also disappear once you actually use the action entry somewhere. The compiler needs to know what type the first parameter to the closure is going to be, and without context (actual usage!) you have to provide it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Wanpaku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants