Skip to content

Commit 2c78399

Browse files
committed
Literal expressions: add placeholder sections for types not yet documented
1 parent 0c4554f commit 2c78399

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/expressions/literal-expr.md

+30
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,30 @@ Each of the lexical [literal][literal tokens] forms described earlier can make u
2626
5; // integer type
2727
```
2828

29+
## Character literal expressions
30+
31+
A character literal expression consists of a single [CHAR_LITERAL] token.
32+
33+
> **Note**: This section is incomplete.
34+
35+
## String literal expressions
36+
37+
A string literal expression consists of a single [STRING_LITERAL] or [RAW_STRING_LITERAL] token.
38+
39+
> **Note**: This section is incomplete.
40+
41+
## Byte literal expressions
42+
43+
A byte literal expression consists of a single [BYTE_LITERAL] token.
44+
45+
> **Note**: This section is incomplete.
46+
47+
## Byte string literal expressions
48+
49+
A string literal expression consists of a single [BYTE_STRING_LITERAL] or [RAW_BYTE_STRING_LITERAL] token.
50+
51+
> **Note**: This section is incomplete.
52+
2953
## Integer literal expressions
3054

3155
An integer literal expression consists of a single [INTEGER_LITERAL] token.
@@ -121,6 +145,12 @@ The value of the expression is determined from the string representation of the
121145
> The [`f32::INFINITY`], [`f64::INFINITY`], [`f32::NAN`], and [`f64::NAN`] constants can be used instead of literal expressions.
122146
> In `rustc`, a literal large enough to be evaluated as infinite will trigger the `overflowing_literals` lint check.
123147
148+
## Boolean literal expressions
149+
150+
A boolean literal expression consists of a single [BOOLEAN_LITERAL] token.
151+
152+
> **Note**: This section is incomplete.
153+
124154
[constant expression]: ../const_eval.md#constant-expressions
125155
[floating-point types]: ../types/numeric.md#floating-point-types
126156
[lint check]: ../attributes/diagnostics.md#lint-check-attributes

0 commit comments

Comments
 (0)