# AstGen: make pointless discard error more strict · gitcafe/zig

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

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

Visibility: public

Requested revision: 0a188190b3b2b42906d0cc38f101b010bc07b414

Requested commit: 0a188190b3b2b42906d0cc38f101b010bc07b414

Commit: 0a188190b3b2b42906d0cc38f101b010bc07b414

Tree: 60f1914391ff3467f5eb97d389a18dbe73e1684f

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
AstGen: make pointless discard error more strict

The error should only happen as a result of `_ = <expr>` not
for an operand of a break expression that is discarded.

Closes #13212

```

## Parents

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

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