Repository navigation
E0515 searching internet for the phrase "owned value" does not give helpful results #62071
Description
Activity
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
'staticlifetime." This would certainly be more searchable, but I'm not certain that the search results that you get for it would be very helpful to the kind of user that is likely to run into this error!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
staticitems and promoted consts have the'staticlifetime, which is simply not true. (it's just that they're the only things that admit a&'staticborrow)FWIW the book goes into quite a lot of detail here: https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html
- addedA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
on Jun 23, 2019 +1, Link 'owned value' to the book?
- addedC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
on Mar 6, 2020 ChiefMilesEdgeworth commented
on Apr 18, 2020 ContributorMore actionsMaybe use this link, and instead of saying "owned value", say "non-reference"?
- added a commit that references this issue
on Mar 17, 2025 - added 2 commits that reference this issue
on Mar 18, 2025 - added a commit that references this issue
on Mar 18, 2025
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.