Skip to content

Commit

Permalink
Rollup merge of #71390 - aticu:master, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix incorrect description of E0690

r? @steveklabnik
  • Loading branch information
JohnTitor authored Apr 22, 2020
2 parents 836a64a + e2901c4 commit 3efa70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0690.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct LengthWithUnit<U> { // error: transparent struct needs exactly one
Because transparent structs are represented exactly like one of their fields at
run time, said field must be uniquely determined. If there is no field, or if
there are multiple fields, it is not clear how the struct should be represented.
Note that fields of zero-typed types (e.g., `PhantomData`) can also exist
Note that fields of zero-sized types (e.g., `PhantomData`) can also exist
alongside the field that contains the actual data, they do not count for this
error. When generic types are involved (as in the above example), an error is
reported because the type parameter could be non-zero-sized.
Expand Down

0 comments on commit 3efa70f

Please sign in to comment.