This code:

void main()
{
    import std.typecons : rebindable, tuple;
    const c = new C();
    auto t = tuple(c.rebindable);
}

class C
{
}

When compiled with DMD 2.095.0 gives a warning:

Warning: struct Rebindable has method toHash, however it cannot be called with const(Rebindable!(const(C))) this.

What is causing this? How can this warning be resolved?

Reply via email to