We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a487bd + 9cdf6e8 commit e5751c9Copy full SHA for e5751c9
src/items/functions.md
@@ -185,9 +185,9 @@ Exhaustive list of permitted structures in const functions:
185
* Reading from constants (but not statics, not even taking a reference to a static)
186
* `&` and `*` (only dereferencing of references, not raw pointers)
187
* Casts except for raw pointer to integer casts
188
-* `const unsafe fn` is allowed, but the body must consist of safe operations
189
- only and you won't be able to call the `const unsafe fn` from within another
190
- const function even if you use `unsafe`
+* `unsafe` blocks and `const unsafe fn` are allowed, but the body/block may only do
+ the following unsafe operations:
+ * calls to const unsafe functions
191
192
## Attributes on functions
193
0 commit comments