fi-0151: Missing library availability {:#fi-0151}

This error occurs when you add an @available attribute on a non-library declaration without an @available attribute on the library declaration.

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

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

To fix this error, add the @available attribute to the library declaration:

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

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

or remove the @available attribute from the nonlibrary declaration:

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