Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Welcome to Stack Overflow! This is an extremely common question; there are now 94 questions with the same error message. SO expects that you have put a lot of effort into your question before asking, so you should take the time to read through those existing questions, then explain how this question is different from those. If people don't read existing answers, there's not much reason to have a site like SO. Commented Mar 29, 2017 at 20:48
  • Additionally, I'd highly suggest using more prose to describe your problem in the body. This will also naturally translate into a better title, which is invaluable. Saying "something like this" forces a future answer searcher to read, parse, and understand your code before being able to understand if the solutions will be useful to them. It forces the same effort on every potential answerer, slowing down or otherwise discouraging any potential answerers. Commented Mar 29, 2017 at 20:54
  • 1
    Adding on, it's a very good idea to read through the free online documentation provided by the Rust community. The Rust Programming Language explains the rationale for many of Rust's decisions, as well as showcasing examples. The chapter on references and borrowing covers the fact that you may not have any other references at the same time you have a mutable reference, for example. Commented Mar 29, 2017 at 20:58
  • 1
    @fazibear for questions like this, I recommend asking on IRC. People are super nice and helpful, and no one gets up in your face about "this question has been asked before". Commented Mar 29, 2017 at 22:56
  • There's information on accessing Rust's IRC on Rust's website. Additional resources include the user's forum and the Rust subreddit, which has a weekly "easy question" thread that is always full of helpful people. Commented Mar 29, 2017 at 23:32