Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail15068.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail15068.d(17): Error: `T!int` is not a valid template instance, because `T` is not a template declaration but a type (`T == int`)
5 fail_compilation/fail15068.d(13): Error: template instance `fail15068.Stuff!int` error instantiating
6 ---
7 */
8
9 // https://issues.dlang.org/show_bug.cgi?id=15068
10
11 void main()
12 {
13 Stuff!int s;
14 }
15 struct Stuff(T)
16 {
17 T!int var;
18 }