Removal of return
creates borrowing error
#1229
Unanswered
TheAlgorythm
asked this question in
Questions
Replies: 1 comment
-
Similar issue: rust-lang/rust-clippy#5858 (comment) ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have these weird borrowing error when I remove the
return
keyword and semicolon like idiomatic Rust. But then it doesn't compile.I am posting it here as I am not able to reproduce it without rusqlite.
This is a minimal reproducible example, but this happens also a lot of other implementations like with
query_map
.Do more people have this error regularly?
What is the reason of this error as I thought the missing
return
and semicolon is just syntactic sugar?Beta Was this translation helpful? Give feedback.
All reactions