You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
E0515 searching internet for the phrase "owned value" does not give helpful results #62071
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 'static lifetime." 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 static items and promoted consts have the 'static lifetime, which is simply not true. (it's just that they're the only things that admit a &'static borrow)
Activity
KyleSiefring commentedon Jun 23, 2019
Is the example (using iter vs into_iter) referring to some sort of design pattern?
Centril commentedon Jun 23, 2019
Did you search for "owned value" or "rust owned value"?
KyleSiefring commentedon Jun 23, 2019
rust owned value
ExpHP commentedon Jun 23, 2019
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)jonas-schievink commentedon Jun 23, 2019
FWIW the book goes into quite a lot of detail here: https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html
gilescope commentedon Sep 19, 2019
+1, Link 'owned value' to the book?
ChiefMilesEdgeworth commentedon Apr 18, 2020
Maybe use this link, and instead of saying "owned value", say "non-reference"?
Rollup merge of rust-lang#138508 - hkBst:patch-3, r=wesleywiser
Rollup merge of rust-lang#138508 - hkBst:patch-3, r=wesleywiser
Rollup merge of rust-lang#138508 - hkBst:patch-3, r=wesleywiser
Unrolled build for rust-lang#138508