We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ba2e4 commit a126a73Copy full SHA for a126a73
src/librustc/diagnostics.rs
@@ -1647,8 +1647,8 @@ the size of the provided type. Such an enum can be cast to a value of the same
1647
type as well. In short, `#[repr(u8)]` makes the enum behave like an integer
1648
with a constrained set of allowed values.
1649
1650
-Only field-less enums can be cast to numerical primitives, so this attribute will
1651
-not apply to structs.
+Only field-less enums can be cast to numerical primitives, so this attribute
+will not apply to structs.
1652
1653
`#[repr(packed)]` reduces padding to make the struct size smaller. The
1654
representation of enums isn't strictly defined in Rust, and this attribute
0 commit comments