Skip to content

Commit a1a6f29

Browse files
ehussspastorino
authored andcommitted
Add clarity about safe and unsafe edition difference.
The `safe` and `unsafe` item qualifiers can only be used if `unsafe` is used (pre-2024). I didn't see this specified elsewhere.
1 parent 1072b01 commit a1a6f29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/items/external-blocks.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ The external block defines its functions and statics in the [value namespace] of
2727

2828
**Edition differences**: Starting in the 2024 edition, the `unsafe` keyword is
2929
required to appear before the `extern` keyword on external blocks. In previous
30-
editions, it is accepted but not required.
30+
editions, it is accepted but not required. The `safe` and `unsafe` item qualifiers
31+
are only allowed if the external block itself is marked as `unsafe`.
3132

3233
## Functions
3334

0 commit comments

Comments
 (0)