>>125
超適当に

template noncopyable() // mixin templateと書きたい・・・
{
@disable
{
this(this) {}
void opAssign(typeof(this) rhs) {}
}
}

struct Foo
{
mixin noncopyable!();
}

void main()
{
Foo a, b;
a = b; // error
Foo c = a; // error
}