4 fail_compilation/diag12829.d(15): Error: function `diag12829.test1` is `@nogc` yet allocates closure for `test1()` with the GC
5 fail_compilation/diag12829.d(18): delegate `diag12829.test1.__lambda2` closes over variable `x`
6 fail_compilation/diag12829.d(17): `x` declared here
7 fail_compilation/diag12829.d(22): function `diag12829.test1.bar` closes over variable `x`
8 fail_compilation/diag12829.d(17): `x` declared here
9 fail_compilation/diag12829.d(29): Error: function `diag12829.test2` is `@nogc` yet allocates closure for `test2()` with the GC
10 fail_compilation/diag12829.d(34): function `diag12829.test2.S.foo` closes over variable `x`
11 fail_compilation/diag12829.d(31): `x` declared here
18 void delegate() @nogc foo
= () {