# Make unary minus for unsigned types a compile error \(\#5654\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8696e52a3d617ce30ec6202adc89cb10c67bcc43)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8696e52a3d617ce30ec6202adc89cb10c67bcc43

Requested commit: 8696e52a3d617ce30ec6202adc89cb10c67bcc43

Commit: 8696e52a3d617ce30ec6202adc89cb10c67bcc43

Tree: 6ed5cbd72781165f2831ea3ace5f309689ed4e61

Author: Robin Voetter

Committer: GitHub

## Message

```
Make unary minus for unsigned types a compile error (#5654)

* Make unary minus for unsigned types a compile error

* Add unreachable when generating unsigned negate
```

## Parents

- [126f5702df2ac86ced868d9e532db44313144452](https://git.cafe/gitcafe/zig/commit/126f5702df2ac86ced868d9e532db44313144452?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8696e52a3d617ce30ec6202adc89cb10c67bcc43?format=markdown)
