# std.meta: test that const and mut variables have different addresses · gitcafe/zig

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

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

Visibility: public

Requested revision: 37bc6ee54a388717095ab59959e5b0282d1ef8ef

Requested commit: 37bc6ee54a388717095ab59959e5b0282d1ef8ef

Commit: 37bc6ee54a388717095ab59959e5b0282d1ef8ef

Tree: 5aefb928fcb34e56656b819a82e3020bd2939815

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
std.meta: test that const and mut variables have different addresses

We are checking that two identical, constant values, are stored at
different addresses.

But sharing a unique location doesn't look like something the compiler
wouldn't do.

It may make more sense to check that a const variable and a mutable
variable set to the same value have different addresses.

```

## Parents

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

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