]>
Commit | Line | Data |
---|---|---|
7da827c9 IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
4 | fail_compilation/fail225.d(15): Error: cannot implicitly convert expression `1` of type `int` to `immutable(char*)` | |
5 | fail_compilation/fail225.d(15): Error: cannot implicitly convert expression `& ch` of type `char*` to `immutable(char*)` | |
6 | --- | |
7 | */ | |
b4c522fa IB |
8 | struct Struct { |
9 | char* chptr; | |
10 | } | |
11 | ||
12 | void main() | |
13 | { | |
14 | char ch = 'd'; | |
15 | immutable Struct iStruct = {1, &ch}; | |
16 | } | |
17 |