-
I have implemented my own slice, but I encountered an error in the image (compilation failed). The following is the error message given by the compiler
Did I miss implementing some traits? How can I use closures in This is the test code on rust playground. |
Beta Was this translation helpful? Give feedback.
Answered by
epage
Jan 1, 2025
Replies: 1 comment
-
Type inference generally misunderstands parser closures, so you probably need to do |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YYMMYB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type inference generally misunderstands parser closures, so you probably need to do
|sl: &mut _|