blob: 6122e41833931273d9043f2ba0aab128013ef96a [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=19948
/*
TEST_OUTPUT:
---
fail_compilation/fail19948.d(15): Error: function `fail19948.func(const(X))` is not callable using argument types `(X)`
fail_compilation/fail19948.d(15): cannot pass argument `X()` of type `fail19948.main.X` to parameter `const(fail19948.X)`
---
*/
struct X {}
void main()
{
struct X {}
func(X());
}
void func(const(X)) {}