2 REQUIRED_ARGS: -preview=dip1000
5 fail_compilation/test16589.d(26): Error: returning `&this.data` escapes a reference to parameter `this`
6 fail_compilation/test16589.d(24): perhaps annotate the function with `return`
7 fail_compilation/test16589.d(31): Error: returning `&this` escapes a reference to parameter `this`
8 fail_compilation/test16589.d(29): perhaps annotate the function with `return`
9 fail_compilation/test16589.d(37): Error: returning `&s.data` escapes a reference to parameter `s`
10 fail_compilation/test16589.d(35): perhaps annotate the parameter with `return`
11 fail_compilation/test16589.d(42): Error: returning `&s` escapes a reference to parameter `s`
12 fail_compilation/test16589.d(40): perhaps annotate the parameter with `return`
13 fail_compilation/test16589.d(47): Error: returning `&s.data` escapes a reference to parameter `s`
14 fail_compilation/test16589.d(52): Error: returning `& s` escapes a reference to parameter `s`
18 // https://issues.dlang.org/show_bug.cgi?id=16589
35 @safe int* access3(ref S s
)
40 @safe S
* access4(ref S s
)
45 @safe int* access5(S s
)