File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ to be ran.
26
26
* [ Array expressions] .
27
27
* [ Struct] expressions.
28
28
* [ Enum variant] expressions.
29
- * [ Block expressions] , including ` unsafe ` blocks, which only contain items and
30
- possibly a constant tail expression.
29
+ * [ Block expressions] , including ` unsafe ` blocks.
30
+ * [ let statement] s and thus irrefutable [ patterns] , with the caveat that until ` if ` and ` match `
31
+ are implemented, one cannot use both short circuiting operators (` && ` and ` || ` ) and let
32
+ statements within the same constant.
33
+ * [ assignment expressions] ( operator-expr.html#assignment-expressions )
34
+ * [ assignment operator expressions] ( operator-expr.html#compound-assignment-expressions )
35
+ * [ expression statements] ( statements.html#expression-statements )
31
36
* [ Field] expressions.
32
37
* Index expressions, [ array indexing] or [ slice] with a ` usize ` .
33
38
* [ Range expressions] .
@@ -39,8 +44,7 @@ to be ran.
39
44
* [ Grouped] expressions.
40
45
* [ Cast] expressions, except pointer to address and
41
46
function pointer to address casts.
42
- * Calls of const functions and const methods
43
- * [ let statement] s and thus irrefutable [ patterns]
47
+ * Calls of const functions and const methods.
44
48
45
49
## Const context
46
50
You can’t perform that action at this time.
0 commit comments