# std.Thread: fix mutable ref of temporary · gitcafe/zig

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

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

Visibility: public

Requested revision: afe6e69e4cda8f5c3a11eed31015a28b1373ff20

Requested commit: afe6e69e4cda8f5c3a11eed31015a28b1373ff20

Commit: afe6e69e4cda8f5c3a11eed31015a28b1373ff20

Tree: 9f672b1c99034b36ed059902180f1ac19a412678

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Thread: fix mutable ref of temporary

The previous code is a compile error in stage2 as well as the
upcoming lang spec.

```

## Parents

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

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