"Simple Null Reference Exception in Nullable Context using Structs"

readonly struct TestStruct {
	public readonly string S;
	public TestStruct(string s) => S = s;
}

sealed class TestClass {
	TestStruct _ts;

	public void SetTS(TestStruct ts) => _ts = ts;

	public void PrintSLength() {
		Console.WriteLine(_ts.S.Length); // NRE here if _ts hasn't been assigned a value yet
	}
}


Code snippet taken from "Complete C# Quick Reference - C# 8".