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*
- 1Welcome 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.Shepmaster– Shepmaster2017-03-29 20:48:27 +00:00Commented 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.Shepmaster– Shepmaster2017-03-29 20:54:23 +00:00Commented Mar 29, 2017 at 20:54
- 1Adding 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.Shepmaster– Shepmaster2017-03-29 20:58:15 +00:00Commented 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".Michael Hewson– Michael Hewson2017-03-29 22:56:29 +00:00Commented 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.Shepmaster– Shepmaster2017-03-29 23:32:50 +00:00Commented Mar 29, 2017 at 23:32
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-rust