GLSL link error: ERROR: Input of fragment shader 'vs_TEXCOORD0' not written by vertex shader

Shader “Custom/texture” {
Properties{
_MainTex (“Albedo (RGB)”, 2D) = “white” {}
}
SubShader {
Pass{
Tags { “RenderType”=“Opaque” }
LOD 200

		CGPROGRAM
		// Physically based Standard lighting model, and enable shadows on all light types
		#pragma vertex vert
		#pragma fragment frag

		sampler2D _MainTex;

		struct Output {
			float4 color : COLOR;
		};

		Output frag(float2 texCoord : TEXCOORD0)
		{
			Output OUT;
			OUT.color = tex2D(_MainTex, texCoord);
			return OUT;
		}

		Output vert() 
		{
			Output OUT;
			return OUT;
		}
		ENDCG
	}
	}
}

It doesn’t specify a line which it breaks on but I assume it’s on line 24.

you have to initialize your Output OUT in your vertex shader.
you may consider to NOT use the same “Output” struct for vertex and fragment shader.