fi-0120: Invalid attribute placement {:#fi-0120}

Some official attributes are only allowed in certain places. For example, the @selector attribute can only be used on methods:

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

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

To fix the error, remove the attribute:

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

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

You might also encounter this error when intending to use an attribute in a way that is supported, but placing it in the wrong spot. For example, the @generated_name attribute cannot go directly on a member:

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

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

Instead, it should go just before the member's anonymous layout:

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

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