13 lines
221 B
C#
13 lines
221 B
C#
|
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X'
|
||
|
// Line: 8
|
||
|
// Compiler options: -unsafe
|
||
|
|
||
|
unsafe struct X {
|
||
|
string a;
|
||
|
static void Main () {
|
||
|
X x;
|
||
|
void* y = &x;
|
||
|
}
|
||
|
}
|
||
|
|