fi-0070: Enum must use integral subtype {:#fi-0070}

Using the non-integral numerics float32 or float64 as the underlying type for an enum declaration is prohibited:

{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}

{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0070.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}

Instead, use any one of the following: int8, int16,int32,int64, uint8, uint16, uint32, or uint64:

{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}

{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0070.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}

Note: if the value given for the underlying type of an enum is not an identifier for a type, it will result in fi-0013: Invalid wrapped type instead.