blob: cab6fc84e8991e98183a0805960203e6fbabcbd2 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=21198
/*
TEST_OUTPUT:
---
fail_compilation/test21198.d(23): Error: Generating an `inout` copy constructor for `struct test21198.U` failed, therefore instances of it are uncopyable
---
*/
struct S
{
this(ref inout(S) other) inout {}
}
union U
{
S s;
}
void fun()
{
U original;
U copy = original;
}