1 2 3 4 5 6 7 8 9 10 11 12
/* TEST_OUTPUT: --- fail_compilation/diag16271.d(10): Error: found `x` when expecting function literal following `ref` --- */ void main() { auto fun = ref x; }