This errors occurs when you use the note
argument for the @available
attribute without the deprecated
argument. note
s are only supported for deprecation.
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0148.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
To fix this error, either remove the note:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0148-a.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
or add the necessary deprecated
notice:
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0148-b.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
See FIDL versioning for more information.