#RustQuiz: what will be the output?

A. false
B. true
C. Compilation error
D. unsafe block is missing

#rustlang #rust

@AstraKernel I think the answer is unspecified (true or false.)

References to zero-sized types happen to use a dangling pointer equal to their alignment, but I don't think it's a guarantee, just a particular impl. Some other properly aligned address could be used instead.
Pointer identity in Rust is mostly useless.