-
I'm trying to create an ActionEntry:
But I got the error: error[E0283]: type annotations needed for I've already created a few instances of ActionEntry and didn't have this kind of errors earlier. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I found a solution:
But I still doesn't understand why it appears. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.