# Tag::inhabitation-failed


**Key:** `Tag::inhabitation-failed`

**Category:** inhabitation · **Severity:** error

**Source:** [`src/diag/hints.nix:906`](https://github.com/kleisli-io/nix-effects/blob/main/src/diag/hints.nix#L906)

the variant's payload does not inhabit the branch type

## Example

`Hint::Tag::inhabitation-failed` means the `Tag` position contains a value that does not inhabit the generated type. The example shows the failing form first, then one way to give the checker the missing structure.

```nix
# Bad: the variant payload does not inhabit the branch type.
Result.validate { tag = "Ok"; value = false; }

# Better: the payload matches the selected branch.
Result.validate { tag = "Ok"; value = 200; }

```


---

[← All diagnostic hints](/nix-effects/diag-hints)
