https://issues.dlang.org/show_bug.cgi?id=18973

LucienPe <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from LucienPe <[email protected]> ---
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;
    }
}
```

--

Reply via email to