summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0459.cs
blob: 93b1a22a7704d75196ce04022ed67740360558b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0459: Cannot take the address of foreach iteration variable `c'
// Line: 10
// Compiler options: -unsafe

class C
{
	public static unsafe void Main ()
	{
		foreach (char c in "test") {
			char* ch = &c;
		}
    }
}