Skip to content

Commit 89feaf6

Browse files
authored
Rollup merge of rust-lang#70023 - GuillaumeGomez:cleanup-e0436, r=Centril
clean up E0436 explanation r? @Dylan-DPC
2 parents 2dcf54f + 4bf6734 commit 89feaf6

File tree

1 file changed

+4
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+4
-3
lines changed

src/librustc_error_codes/error_codes/E0436.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
The functional record update syntax is only allowed for structs. (Struct-like
2-
enum variants don't qualify, for example.)
1+
The functional record update syntax was used on something other than a struct.
32

43
Erroneous code example:
54

@@ -24,7 +23,9 @@ fn one_up_competitor(competitor_frequency: PublicationFrequency)
2423
}
2524
```
2625

27-
Rewrite the expression without functional record update syntax:
26+
The functional record update syntax is only allowed for structs (struct-like
27+
enum variants don't qualify, for example). To fix the previous code, rewrite the
28+
expression without functional record update syntax:
2829

2930
```
3031
enum PublicationFrequency {

0 commit comments

Comments
 (0)