mirror of
https://github.com/rust-lang/book.git
synced 2026-12-04 08:34:56 -06:00
Merge pull request #1993 from JosephTLyons/Add-additional-bullet-point-for-unsafe
Added a bullet point to have list of things unsafe allows for match u…
This commit is contained in:
@@ -33,6 +33,7 @@ the ability to:
|
||||
* Call an unsafe function or method
|
||||
* Access or modify a mutable static variable
|
||||
* Implement an unsafe trait
|
||||
* Access fields of `union`s
|
||||
|
||||
It’s important to understand that `unsafe` doesn’t turn off the borrow checker
|
||||
or disable any other of Rust’s safety checks: if you use a reference in unsafe
|
||||
|
||||
Reference in New Issue
Block a user