Skip to content

Commit

Permalink
Remove struct-like enum variant values.
Browse files Browse the repository at this point in the history
These were removed in rust-lang/rust#103578.
  • Loading branch information
ehuss committed Jul 26, 2024
1 parent 65c20b1 commit 585407f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/enumerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 83,7 @@ enum Enum {

Variant constructors are similar to [struct] definitions, and can be referenced by a path from the enumeration name, including in [use declarations].
Each variant defines its type in the [type namespace], though that type cannot be used as a type specifier.
Each variant also defines a constructor in the [value namespace].
Tuple-like and unit-like variants also define a constructor in the [value namespace].

A struct-like variant can be instantiated with a [struct expression].
A tuple-like variant can be instantiated with a [call expression] or a [struct expression].
Expand Down

0 comments on commit 585407f

Please sign in to comment.