This error occurs when you try to add more constraints to a type than are supported. string
, for example, supports at most two constraints.
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0164.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
To fix this issue, remove the extra constraints:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0164.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}