@@ -260,19 +260,17 @@ colon. In the case of a tuple struct the field names are numbers corresponding
260
260
to the position of the field. The numbers must be written in decimal,
261
261
containing no underscores and with no leading zeros or integer suffix.
262
262
263
- Struct expressions can't be used directly in the head of an
264
- [ ` if ` ] ( #if-expressions ) , [ ` while ` ] ( #while-loops ) ,
265
- [ ` match ` ] ( #match-expressions ) , [ ` for ` ] ( #for-expressions ) , [ `if
266
- let` ](#if-let-expressions) or [ ` while let`] ( #while-let-loops ) expression. But
267
- struct expressions can still be in used inside parentheses, for example.
268
-
269
- A _ tuple struct expression_ consists of the [ path] ( paths.html ) of a [ struct
270
- item] ( items.html#structs ) , followed by a parenthesized list of one or more
271
- comma-separated expressions (in other words, the path of a struct item followed
272
- by a tuple expression). The struct item must be a tuple struct item.
273
-
274
- A _ unit-like struct expression_ consists only of the [ path] ( paths.html ) of a
275
- [ struct item] ( items.html#structs ) .
263
+ Struct expressions can't be used directly in the head of a [ loop] ( #loops ) or an
264
+ [ ` if ` ] ( #if-expressions ) , [ ` if let ` ] ( #if-let-expressions ) or
265
+ [ ` match ` ] ( #match-expressions ) expression. But struct expressions can still be
266
+ in used inside parentheses, for example.
267
+
268
+ A _ tuple struct expression_ consists of the path of a struct item, followed by
269
+ a parenthesized list of one or more comma-separated expressions (in other
270
+ words, the path of a struct item followed by a tuple expression). The struct
271
+ item must be a tuple struct item.
272
+
273
+ A _ unit-like struct expression_ consists only of the path of a struct item.
276
274
277
275
The following are examples of struct expressions:
278
276
0 commit comments