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.
1 files changed, 1 insertions(+), 1 deletions(-)
lib
std
lib/std/meta.zig+1-1
| ... | ... | @@ -574,7 +574,7 @@ test "std.meta.eql" { |
| 574 | 574 | .c = "54321".*, |
| 575 | 575 | }; |
| 576 | 576 | |
| 577 | | const s_3 = S{ |
| 577 | var s_3 = S{ |
| 578 | 578 | .a = 134, |
| 579 | 579 | .b = 123.3, |
| 580 | 580 | .c = "12345".*, |