https://issues.dlang.org/show_bug.cgi?id=18973
LucienPe <lucien.perreg...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |lucien.perreg...@gmail.com Resolution|--- |INVALID --- Comment #1 from LucienPe <lucien.perreg...@gmail.com> --- That has nothing to do with the @disable attribute. It's because you need to add a body to `toHash()`. Like this: ``` @disable size_t toHash() const { return 0; } ``` For the v2.091 of DMD: ``` struct X { @disable size_t toHash() const nothrow @safe { return 0; } } ``` --