1 // https://issues.dlang.org/show_bug.cgi?id=22593
6 fail_compilation/test22593.d(14): Error: cannot define both an rvalue constructor and a copy constructor for `struct Foo`
7 fail_compilation/test22593.d(22): Template instance `__ctor!(immutable(Foo!int), immutable(Foo!int))` creates a rvalue constructor for `struct Foo`
8 fail_compilation/test22593.d(22): Error: template instance `test22593.Foo!int.Foo.__ctor!(immutable(Foo!int), immutable(Foo!int))` error instantiating
14 this(Rhs
, this This
)(scope Rhs rhs
){}
16 this(ref scope typeof(this) rhs
){}