blob: aa44709124a31d3fbb86b42572e1a836617a95fd [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice13644.d(22): Error: foreach: key cannot be of non-integral type `string`
---
*/
struct Tuple(T...)
{
T field;
alias field this;
}
Tuple!(string, string)[] foo()
{
Tuple!(string, string)[] res;
return res;
}
void main()
{
foreach (string k2, string v2; foo())
{
}
}