Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Rust
/
Borrowing rules
What does a lifetime annotation on a returned reference do?
from Borrowing rules
Rust 1.98
intermediate
1 min
What does a lifetime annotation on a returned reference do?
It states how the result validity relates to input references.
It extends the lifetime of a local allocation.
It allocates the result in static storage.
It disables NLL for the annotated function.
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload