2 REQUIRED_ARGS: -preview=dip1000
5 fail_compilation/fail22366.d(22): Error: scope variable `s` may not be copied into allocated memory
6 fail_compilation/fail22366.d(25): Error: scope variable `s` may not be copied into allocated memory
7 fail_compilation/fail22366.d(26): Error: scope variable `s` may not be copied into allocated memory
8 fail_compilation/fail22366.d(27): Error: scope variable `s` may not be copied into allocated memory
9 fail_compilation/fail22366.d(28): Error: scope variable `s` may not be copied into allocated memory
10 fail_compilation/fail22366.d(31): Error: scope variable `s` may not be copied into allocated memory
11 fail_compilation/fail22366.d(32): Error: scope variable `s` may not be copied into allocated memory
15 // Test escaping scope variables through AA keys / values
16 // https://issues.dlang.org/show_bug.cgi?id=22366
17 // https://issues.dlang.org/show_bug.cgi?id=23531
19 void fun(scope string s
) @safe
30 string
[string
][string
] snaa
;