Diving deep into anonymous struct literals

I believe anonymous literals are a red herring here. What matters is whether the value is comptime or not. I believe

const stable_ptr = &comptime arbitrary-expr

either gets the desired guarantee here, or prints a clear error as to why the thing can’t be comptime.

6 Likes