----
ref void foo()
{
}
void test()
{
auto p = &foo();
}
----
Somewhat weird that it's allowed to return `ref void` and even take it's address.
Might be at odds with some generic programming, but wouldn't know an example requiring this.
Also see the discussion in https://github.com/dlang/druntime/pull/1815.
Comment #1 by robert.schadek — 2024-12-13T18:52:21Z