dmd/compiler/test/fail_compilation/fail20376.d
2022-07-09 18:53:07 +02:00

20 lines
280 B
D

// https://issues.dlang.org/show_bug.cgi?id=20376
/*
TEST_OUTPUT:
---
fail_compilation/fail20376.d(17): Error: cannot implicitly convert expression `Foo()` of type `Foo` to `ubyte`
---
*/
struct Foo
{
this(ref scope Foo);
}
ubyte fun()
{
return Foo();
}
void main(){}