File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Constant items
2
2
3
+ > ** <sup >Syntax</sup >**
4
+ > _ ConstantItem_ :
5
+ >   ;  ; ` const ` [ IDENTIFIER] ` : ` [ _ Type_ ] ` = ` [ _ Expression_ ] ` ; `
6
+
3
7
A * constant item* is a named _ [ constant value] _ which is not associated with a
4
8
specific memory location in the program. Constants are essentially inlined
5
9
wherever they are used, meaning that they are copied directly into the relevant
@@ -37,4 +41,7 @@ const BITS_N_STRINGS: BitsNStrings<'static> = BitsNStrings {
37
41
38
42
[ constant value ] : expressions.html#constant-expressions
39
43
[ static lifetime elision ] : items/static-items.html#static-lifetime-elision
40
- [ `Drop` ] : the-drop-trait.html
44
+ [ `Drop` ] : the-drop-trait.html
45
+ [ IDENTIFIER ] : identifiers.html
46
+ [ _Type_ ] : types.html
47
+ [ _Expression_ ] : expressions.html
You can’t perform that action at this time.
0 commit comments