gcc/testsuite/gdc.test/fail_compilation/fail17570.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail17570.d(12): Error: cannot use function constraints for non-template functions. Use `static if` instead |
| 5 | fail_compilation/fail17570.d(13): Error: declaration expected, not `{` |
| 6 | fail_compilation/fail17570.d(15): Error: `}` expected following members in `struct` declaration |
| 7 | fail_compilation/fail17570.d(11): struct `S` starts here |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | struct S(T) { |
| 12 | void func() if(isIntegral!T) |
| 13 | {} |
| 14 | } |