# Merge pull request \#12820 from ziglang/pointless-discard-error · gitcafe/zig

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

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

Visibility: public

Requested revision: c25ce5bba0d00283ad4de9077dba5a8d5255b619

Requested commit: c25ce5bba0d00283ad4de9077dba5a8d5255b619

Commit: c25ce5bba0d00283ad4de9077dba5a8d5255b619

Tree: cc4bdb8332acdde7b23bffacfc42bffaa6d35273

Author: Andrew Kelley

Committer: GitHub

## Message

```
Merge pull request #12820 from ziglang/pointless-discard-error

introduce compile error for pointless discards
```

## Parents

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

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

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