1 /* TEST_OUTPUT: 2 --- 3 fail_compilation/test15191.d(17): Error: cannot take address of ref return of foo() in @safe function bar 4 --- 5 */ 6 7 8 // https://issues.dlang.org/show_bug.cgi?id=15191 9 foo(return ref int s)10ref int foo(return ref int s)@safe 11 { 12 return s; 13 } 14 bar(return ref int s)15int* bar(return ref int s) @safe 16 { 17 return &foo(s); 18 } 19