Sign in
rust
/
rust-by-example
/
refs/heads/macros
/
.
/
examples
/
lifetime
/
fn
/
input.md
blob: 991080c36243ec2274dca209d027a96f03687fd4 [
file
] [
log
] [
blame
] [
view
] [
edit
]
Explicit
lifetimes are necessary
when
functions
return
references
.
Our
case
study will be returning a reference to one of the fields of a
struct
.
{
fn
.
play
}