1 // REQUIRED_ARGS: -preview=dip1021
5 fail_compilation/fob1.d(104): Error: variable `fob1.foo1.p` has undefined state and cannot be read
6 fail_compilation/fob1.d(104): Error: variable `fob1.foo1.p` is returned but is Undefined
20 fail_compilation/fob1.d(204): Error: variable `fob1.foo2.p` assigning to Owner without disposing of owned value
21 fail_compilation/fob1.d(203): Error: variable `fob1.foo2.p` is not disposed of before return
36 fail_compilation/fob1.d(304): Error: variable `fob1.foo3.p` has undefined state and cannot be read
37 fail_compilation/fob1.d(304): Error: variable `fob1.foo3.p` is returned but is Undefined
38 fail_compilation/fob1.d(303): Error: variable `fob1.foo3.q` is not disposed of before return
44 @live int* foo3(int* p
)
52 fail_compilation/fob1.d(405): Error: variable `fob1.foo4.bq` has undefined state and cannot be read
58 @live int* foo4(int* p
)
61 scope const int* cq
= p
;
68 fail_compilation/fob1.d(503): Error: more than one mutable reference to `a` in arguments to `fob1.foo5()`
72 // https://issues.dlang.org/show_bug.cgi?id=20781
81 @live void foo5(ref int, ref int);