title: InvalidUnsafeSliceData layout: article

InvalidUnsafeSliceData occurs when unsafe.SliceData is called with
an argument that is not of slice type. It also occurs if it is used
in a package compiled for a language version before go1.20.

Example:
 import "unsafe"

 var x int
 var _ = unsafe.SliceData(x)