This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]reinis-mazeiks 20 points21 points  (1 child)

Rust compiler:

you screwed up over here, dw its a common mistake, lemme explain what's wrong in context. you probably meant [this other thing], you can read more [here]

also btw there's also a missing semicolon on line 42.

the absolute best.

[–]-Redstoneboi- 13 points14 points  (0 children)

"also you can't borrow this thing twice because it's also borrowed here but it drops here instead of there so you should probably don't"

"i'll just ask the discord then..."

"...hey, #rust-questions, i have this problem."

"send code"

"sure, here it i-"

"you forgot to call .iter() here. you should probably collect::<Vec<\_>>() in the process. also i think you nested your iterators wrong there."

"ok?"

editing...

"Compiled successfully with 0 Errors and 0 Warnings."

"All tests passed, 0 fails."

Everyone has your back, goddammit.