We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c88a0f commit 1f157baCopy full SHA for 1f157ba
README.md
@@ -32,6 +32,7 @@ pub enum Letter {
32
}
33
34
// Indexing and mutation
35
+// The SIZE hint is required until [generic_const_expr](https://github.com/rust-lang/rust/issues/76560) are stabilized.
36
let mut enum_map = EnumMap::<Letter, i32, { Letter::SIZE }>::new_default();
37
assert_eq!(0, enum_map[Letter::A]);
38
enum_map[Letter::A] = 42;
0 commit comments