/*
TEST_OUTPUT:
----
fail_compilation/b19523.d(13): Error: undefined identifier `SomeStruct`
fail_compilation/b19523.d(14): Error: function `foo` is not callable using argument types `(_error_)`
fail_compilation/b19523.d(14):        cannot pass argument `__error` of type `_error_` to parameter `int delegate() arg`
fail_compilation/b19523.d(19):        `b19523.foo(int delegate() arg)` declared here
----
*/
module b19523;

void bar () {
	SomeStruct s;
	foo({
		return s;
	});
}

void foo (int delegate() arg) {}
