blob: c38b15562d12c41e258aae92c040201ec7b76211 [file] [view]
## fi-0177: Resource definition rights property must refer to bits {:#fi-0177}
The `resource_definition` declaration cannot use a non-`bits` as the `rights`
member:
{% include "docs/reference/fidl/language/error-catalog/label/_bad.md" %}
```fidl
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0177.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
```
Point this member to a valid `bits : uint32` declaration:
{% include "docs/reference/fidl/language/error-catalog/label/_good.md" %}
```fidl
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0177.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
```
This is an error related to FIDL's internal implementation, and thus should only
ever be surfaced to developers working on FIDL's core libraries. End users
should never see this error.
The `resource_definition` declaration it refers to is FIDL's internal means of
defining resources like handles, and is likely to change in the future as part
of the [handle generalization](https://fxbug.dev/64629) effort.