Skip to content

Commit 09751b9

Browse files
committed
Add missing unsafe features
1 parent d8dfa75 commit 09751b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unsafety.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ Rust:
88

99
- Dereferencing a [raw pointer](types.html#pointer-types).
1010
- Reading or writing a [mutable static variable](items.html#mutable-statics).
11+
- Reading a field of a [`union`](items.html#unions), or writing to a field of a
12+
union that isn't [`Copy`](the-copy-trait.html).
1113
- Calling an unsafe function (including an intrinsic or foreign function).
14+
- Implementing an unsafe trait.

0 commit comments

Comments
 (0)