| ... | ... | @@ -5725,9 +5725,8 @@ test "turn HashMap into a set with void" { |
| 5725 | 5725 | value is deleted, as seen above. |
| 5726 | 5726 | </p> |
| 5727 | 5727 | <p> |
| 5728 | | {#syntax#}void{#endsyntax#} is distinct from {#syntax#}c_void{#endsyntax#}, which is defined like this: |
| 5729 | | {#syntax#}pub const c_void = opaque {};{#endsyntax#}. |
| 5730 | | {#syntax#}void{#endsyntax#} has a known size of 0 bytes, and {#syntax#}c_void{#endsyntax#} has an unknown, but non-zero, size. |
| 5728 | {#syntax#}void{#endsyntax#} is distinct from {#syntax#}c_void{#endsyntax#}. |
| 5729 | {#syntax#}void{#endsyntax#} has a known size of 0 bytes, and {#syntax#}c_void{#endsyntax#} has an unknown, but non-zero, size. |
| 5731 | 5730 | </p> |
| 5732 | 5731 | <p> |
| 5733 | 5732 | Expressions of type {#syntax#}void{#endsyntax#} are the only ones whose value can be ignored. For example: |