Skip to content

Commit 277dbe4

Browse files
committed
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 b18ade5 commit 277dbe4

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
@@ -25,7 +25,8 @@ blocks is only allowed in an `unsafe` context.
2525

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

3031
## Functions
3132

0 commit comments

Comments
 (0)