hey @rustlang twitter, I'm drawing a blank on why this is failing to compile: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7310302725e53db854c810cbf6aa6f64 …
Basically, I'm being passed a reference, and I want to clone the reference to pass it into a function that consumes it. Do I need to implement copy in this case?
-
-
Replying to @graysonarts @rustlang
You don't need a * anywhere. Remove it and it'll compile
1 reply 0 retweets 0 likes -
It didn't compile without the *'s either, turns out, I needed to derive Clone
1 reply 0 retweets 0 likes
Replying to @graysonarts @rustlang
Oh yeah I assumed that was in your real code since your example had a lot of other unrelated errors
5:43 PM - 7 May 2020
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.