# add compile error for returning local variable address · gitcafe/zig

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

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

Visibility: public

Requested revision: 2e512a0e6e81532b62ddb7fdafdcd28926690eaa

Requested commit: 2e512a0e6e81532b62ddb7fdafdcd28926690eaa

Commit: 2e512a0e6e81532b62ddb7fdafdcd28926690eaa

Tree: c20acbfa1e99c7d7edef93ac57a86dbe8eee5666

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add compile error for returning local variable address

closes #344

```

## Parents

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

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