# `failure.duplicate_declaration`

Failure is listed twice after `fails`.

Area 4, [Failures](../topics/failures.md); not declinable; the next step is usually the agent's.

```jadpo
type Note = Text {}

type Refused = Failure {
    kind: FailureKind.rejected
}

action execute(note: Note) fails Refused, Refused -> Note {
    reject Refused
}
```

```text
error: `Refused` is listed twice after `fails`
 --> main.jadpo:7:43
  |
7 | action execute(note: Note) fails Refused, Refused -> Note {
  |                                           ^^^^^^^ listed again
  |                                  ------- first listed here
  reason: `fails` lists each failure that can leave once.
  next: Remove the second `Refused` (agent)
  rule: failure.duplicate_declaration
  help: https://jadpo.dev/docs/errors/failure.duplicate_declaration

check failed: 1 error, 1 file
```
