<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS8175</ErrorName>
  <Examples>
    <string>// CS8175: Cannot use by-reference variable `s' inside an anonymous method, lambda expression, or query expression
// Line: 17
// Compiler options: -langversion:latest

using System;

public ref struct S
{
}

class Test
{
	public static void Main ()
	{
		var s = new S ();

		Action a = () =&gt; Console.WriteLine (s);
	}
}</string>
    <string>// CS8175: Cannot use by-reference variable `v' inside an anonymous method, lambda expression, or query expression
// Line: 14

using System;

public class Test
{
	public static void Main()
	{
		var arr = new int [1];
		ref var v = ref arr [0];

		Action a = delegate {
			ref var v2 = ref v;
		};
	}
}</string>
  </Examples>
</ErrorDocumentation>