(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test21680.d
// https://issues.dlang.org/show_bug.cgi?id=21680

struct Unique
{
    alias ValueType = typeof({ return field; }()); /* Error: need `this` for
`field` of type `int` */
    int field;
    static assert(is(ValueType == int));
}