You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/identifiers.md
+2
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ The profile used from UAX #31 is:
27
27
* Continue := [`XID_Continue`]
28
28
* Medial := empty
29
29
30
+
with the additional constraint that a single underscore character is not an identifier.
31
+
30
32
> **Note**: Identifiers starting with an underscore are typically used to indicate an identifier that is intentionally unused, and will silence the unused warning in `rustc`.
31
33
32
34
Identifiers may not be a [strict] or [reserved] keyword without the `r#` prefix described below in [raw identifiers](#raw-identifiers).
0 commit comments