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
Which reference set may safely access the same ordinary value at one point?
from Borrowing rules
Rust 1.98
beginner
1 min
Which reference set may safely access the same ordinary value at one point?
Any number of &T references and no conflicting &mut T reference
Two &mut T references as long as only one writes
One &T and one &mut T when the owner was declared mut
Any references when the code runs on one thread
Check
Ask AI about this kata
Report an error
previous kata
Review generated stock transfer
Review AI code
next kata
Spot the bug in vector growth
Spot the bug
A new version is available
Reload