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
/
Lifetime elision and annotations
Which statement correctly distinguishes String: static from a static reference?
from Lifetime elision and annotations
Rust 1.98
intermediate
1 min
Which statement correctly distinguishes String: static from a static reference?
An owned String satisfies a static type bound but can still be dropped at the end of an ordinary block.
Any String satisfying the bound is stored in the program binary forever.
A reference to a local String becomes static when moved into a closure.
The static bound delays all destructors until process exit.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the local reference
Spot the bug
A new version is available
Reload