blob: 1e51a06ef7335bf3d822f14f45f4ae915cd21e19 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice11856_0.d(19): Error: none of the overloads of template `ice11856_0.f` are callable using argument types `!()(int)`
fail_compilation/ice11856_0.d(13): Candidates are: `f(T)(T t)`
fail_compilation/ice11856_0.d(16): `f(T)(T t)`
with `T = int`
must satisfy the following constraint:
` !__traits(compiles, .f!T)`
---
*/
int f(T)(T t) if(!__traits(compiles,.f!T)) {
return 0;
}
int f(T)(T t) if(!__traits(compiles,.f!T)) {
return 1;
}
enum x=f(2);