blob: d42b324ee9b3f79d7d009322cf737aa7a7033f64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/+
TEST_OUTPUT:
---
fail_compilation/must_use_union.d(15): Error: ignored value of `@mustuse` type `must_use_union.U`; prepend a `cast(void)` if intentional
---
+/
import core.attribute;
@mustuse union U {}
U fun() { return U(); }
void test()
{
fun();
}
|