Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail319.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail319.d(16): Error: template instance `fail319.f!(int, int)` does not match template declaration `f(T...)()`
5 with `T = (int, int)`
6 must satisfy the following constraint:
7 ` T.length > 20`
8 ---
9 */
10
11 void f(T...)() if (T.length > 20)
12 {}
13
14 void main()
15 {
16 f!(int, int)();
17 }