-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E0515 searching internet for the phrase "owned value" does not give helpful results #62071
Comments
Is the example (using iter vs into_iter) referring to some sort of design pattern? |
Did you search for "owned value" or "rust owned value"? |
rust owned value |
For the record, when it says "owned value," it means something that does not borrow from anything else. A precise technical term would be: "something with the Edit: In fact, the top Google search result is very misleading! https://doc.rust-lang.org/stable/rust-by-example/scope/lifetime/static_lifetime.html . It seems to suggest that only |
FWIW the book goes into quite a lot of detail here: https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html |
+1, Link 'owned value' to the book? |
Maybe use this link, and instead of saying "owned value", say "non-reference"? |
Clarify "owned data" in E0515.md This clarifies the explanation of why this is not allowed and also what to do instead. Fixes rust-lang#62071 PS There was suggestion of adding a link to the book. I did not yet do that, but if desired that could be added.
Clarify "owned data" in E0515.md This clarifies the explanation of why this is not allowed and also what to do instead. Fixes rust-lang#62071 PS There was suggestion of adding a link to the book. I did not yet do that, but if desired that could be added.
Rollup merge of rust-lang#138508 - hkBst:patch-3, r=wesleywiser Clarify "owned data" in E0515.md This clarifies the explanation of why this is not allowed and also what to do instead. Fixes rust-lang#62071 PS There was suggestion of adding a link to the book. I did not yet do that, but if desired that could be added.
https://doc.rust-lang.org/error-index.html#E0515
Searching for this phrase does not define it within the first page of a google search.
The text was updated successfully, but these errors were encountered: