blob: 14935a726716db55c909efeb14bb4e0eb53e6268 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail18994.d(19): Error: struct `fail18994.Type1` is not copyable because it has a disabled postblit
---
*/
struct Type2
{
int opApply(int delegate(ref Type1)) { return 0; }
}
struct Type1
{
@disable this(this);
}
void test()
{
foreach(b; Type2()) {}
}