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