Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/auto_ref_inout.d(12): Error: template `f` is not callable using argument types `!()(int)`
5 fail_compilation/auto_ref_inout.d(10): Candidate is: `f(T)(auto ref inout T a, auto ref inout T b)`
6 ---
7 */
8
9 // https://issues.dlang.org/show_bug.cgi?id=24707
10 auto ref inout(T) f(T)(auto ref inout T a, auto ref inout T b);
11
12 enum e = f(5);