File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -232,9 +232,7 @@ Implicit borrows may be taken in the following expressions:
232
232
## Constant expressions
233
233
234
234
Certain types of expressions can be evaluated at compile time. These are called
235
- _ constant expressions_ . Certain places, such as in
236
- [ constants] ( items/constant-items.html ) and [ statics] ( items/static-items.html ) ,
237
- require a constant expression, and are always evaluated at compile time. In
235
+ _ constant expressions_ and are required in [ const contexts] . In
238
236
other places, such as in [ ` let ` statements] ( statements.html#let-statements ) ,
239
237
constant expressions may be evaluated at compile time. If errors, such as out
240
238
of bounds [ array indexing] or [ overflow] occurs,
@@ -313,6 +311,7 @@ exist in `core::ops` and `core::cmp` with the same names.
313
311
[ let ] : statements.html#let-statements
314
312
[ let statement ] : statements.html#let-statements
315
313
[ Mutable `static` items ] : items/static-items.html#mutable-statics
314
+ [ const contexts ] : const_eval.html
316
315
[ slice ] : types.html#array-and-slice-types
317
316
[ static variables ] : items/static-items.html
318
317
[ Temporary values ] : #temporary-lifetimes
You can’t perform that action at this time.
0 commit comments